]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: rename buffer cache index variable b_bn libxfs-5.15-sync_2022-01-19
authorDarrick J. Wong <djwong@kernel.org>
Thu, 6 Jan 2022 22:13:17 +0000 (14:13 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jan 2022 00:02:51 +0000 (16:02 -0800)
commit0de4ea650fe3879e81bf22499b0f0f9745d31a1c
tree82fc0e51cf4225127ea54da817c512a3290992b2
parentcf2fbe43d1cfc5c148a98bd2166f36db00937a6f
libxfs: rename buffer cache index variable b_bn

To stop external users from using b_bn as the disk address of the
buffer, rename it to b_rhash_key to indicate that it is the buffer
cache index, not the block number of the buffer. Code that needs the
disk address should use xfs_buf_daddr() to obtain it.

Do the rename and clean up any of the remaining internal b_bn users.
Also clean up any remaining b_bn cruft that is now unused.

Inspired-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/libxfs_io.h
libxfs/rdwr.c