]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: rename buffer cache index variable b_bn libxfs-5.15-sync_2021-10-16
authorDarrick J. Wong <djwong@kernel.org>
Fri, 3 Sep 2021 16:20:10 +0000 (09:20 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 16 Oct 2021 18:11:48 +0000 (11:11 -0700)
commit3160ec6c22a4bb33799bf3171c9655d27444bbe5
treeaa2a6f870fa4279c2821ac98d0098bcee9137ad1
parentb5f08f2c4caa17ce2985bf2a816ea8271dfefb1d
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