diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-04-23 07:58:51 +0200 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-05-14 23:20:47 +0200 |
commit | 4e94b71b7068b4bd9c615301197e09dbf0c3b770 (patch) | |
tree | fc441ec17202a749a6b1a3d5b70ba37101b595da /fs/xfs/xfs_trans_buf.c | |
parent | xfs: kill b_file_offset (diff) | |
download | linux-4e94b71b7068b4bd9c615301197e09dbf0c3b770.tar.xz linux-4e94b71b7068b4bd9c615301197e09dbf0c3b770.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_trans_buf.c')
0 files changed, 0 insertions, 0 deletions