]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: rename buffer cache index variable b_bn
authorDarrick J. Wong <djwong@kernel.org>
Thu, 3 Feb 2022 19:58:35 +0000 (14:58 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 3 Feb 2022 19:58:35 +0000 (14:58 -0500)
commit246e2283ad4190ab55be6ccb4a2d9836bb52a170
treeae6d6b93fd98f24bd06bb9d1ec3854268a12326e
parentf1208396dd866ed140c993fb03693d45ba47d596
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.

Inspired-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
[sandeen: moved the xfs_buf_daddr changes to prior patch]
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_io.h
libxfs/rdwr.c