Skip to content

Commit

Permalink
xfs: cleanup xlog_bread
Browse files Browse the repository at this point in the history
Most callers of xlog_bread need to call xlog_align to get the actual offset.
Consolidate that call into the main xlog_bread and provide a _xlog_bread
for those few that don't want the actual offset.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
  • Loading branch information
Christoph Hellwig authored and Christoph Hellwig committed Mar 16, 2009
1 parent ff0205e commit 076e6ac
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 88 deletions.
1 change: 0 additions & 1 deletion fs/xfs/xfs_log_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ extern void xlog_recover_process_iunlinks(xlog_t *log);

extern struct xfs_buf *xlog_get_bp(xlog_t *, int);
extern void xlog_put_bp(struct xfs_buf *);
extern int xlog_bread(xlog_t *, xfs_daddr_t, int, struct xfs_buf *);

extern kmem_zone_t *xfs_log_ticket_zone;

Expand Down
Loading

0 comments on commit 076e6ac

Please sign in to comment.