]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: use blocks for counting length of buffers
authorDave Chinner <dchinner@redhat.com>
Mon, 23 Apr 2012 05:58:51 +0000 (15:58 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 14 May 2012 21:20:47 +0000 (16:20 -0500)
commitaf4d1565485d8254c7d631067036dcc96fcd2ea3
treefc441ec17202a749a6b1a3d5b70ba37101b595da
parenteb6642f9438c98624814eda575919aa46ab69a43
xfs: use blocks for counting length of buffers

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 only serve to make the code shouty
loud and don't actually add any real value.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_attr.c
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_log.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_trace.h