]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: introduce xfs_buf_daddr()
authorDave Chinner <dchinner@redhat.com>
Thu, 6 Jan 2022 22:13:16 +0000 (14:13 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jan 2022 00:02:51 +0000 (16:02 -0800)
commit73f8af01000b89e9bb0e1c93b02d241d04936fd4
treef00eef8e9039669ff3c3b2a4d280e364d3e8303f
parentede1c398c80549b80d2002119ac6e0824f8b4559
xfs: introduce xfs_buf_daddr()

Source kernel commit: 04fcad80cd068731a779fb442f78234732683755

Introduce a helper function xfs_buf_daddr() to extract the disk
address of the buffer from the struct xfs_buf. This will replace
direct accesses to bp->b_bn and bp->b_maps[0].bm_bn, as well as
the XFS_BUF_ADDR() macro.

This patch introduces the helper function and replaces all uses of
XFS_BUF_ADDR() as this is just a simple sed replacement.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
15 files changed:
libxfs/libxfs_io.h
libxfs/logitem.c
libxfs/xfs_alloc_btree.c
libxfs/xfs_attr.c
libxfs/xfs_bmap.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_btree.c
libxfs/xfs_ialloc_btree.c
libxfs/xfs_inode_buf.c
libxfs/xfs_refcount_btree.c
libxfs/xfs_rmap_btree.c
libxfs/xfs_sb.c
libxlog/xfs_log_recover.c
repair/dino_chunks.c
repair/prefetch.c