[PATCH 6/8] xfs: use blocks for counting length of buffers
Mark Tinguely
tinguely at sgi.com
Fri Mar 30 14:13:10 CDT 2012
On 03/29/12 07:23, Dave Chinner wrote:
> From: Dave Chinner<dchinner at redhat.com>
>
> Now that we pass block counts everywhere, and index buffers by block
> number, track the length of the buffer in units of blocks rather
> than bytes. Convert the code to use block counts, and those that
> need byte counts get converted at the time of use.
>
> Also, remove the XFS_BUF_{SET_}SIZE() macros that are just wrappers
> around the buffer length. They onyl serve to make the code shouty
> loud and don't actually add any real value.
>
> 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