[PATCH 8/8] xfs: kill xfs_buf_btoc
Mark Tinguely
tinguely at sgi.com
Fri Mar 30 14:13:58 CDT 2012
On 03/29/12 07:23, Dave Chinner wrote:
> From: Dave Chinner<dchinner at redhat.com>
>
> xfs_buf_btoc and friends are simple macros that do basic block
> to page index conversion and vice versa. These aren't widely used,
> and we use open coded masking and shifting everywhere else. Hence
> remove themacros and open code the work they do.
>
> Also, use of PAGE_CACHE_{SIZE|SHIFT|MASK} for these macros is now
> incorrect - we are using pages directly and not the page cache, so
> use PAGE_{SIZE|MASK|SHIFT} instead.
>
> Signed-off-by: Dave Chinner<dchinner at redhat.com>
> ---
Looks good.
Reviewed-by: Mark Tinguely <tinguely at sgi.com>
More information about the xfs
mailing list