]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: rename buffer cache index variable b_bn libxfs-5.15-sync_2021-09-17
authorDarrick J. Wong <djwong@kernel.org>
Fri, 3 Sep 2021 16:20:10 +0000 (09:20 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 18 Sep 2021 02:00:27 +0000 (19:00 -0700)
commitad0f44bc01498bbba7ed0cbc7abf2db885213a95
tree30a83d3d368c08f7bc17353fe1918e96382f015a
parente1411fe8733c5f5bb4366ccca1f96b2c69b00012
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