]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: introduce xfs_buf_daddr()
authorDave Chinner <dchinner@redhat.com>
Mon, 31 Jan 2022 22:46:05 +0000 (17:46 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 31 Jan 2022 22:46:05 +0000 (17:46 -0500)
commitd4aaa66b033bb20858dcbac28afae94d11ea187b
tree40db9ab5b2ac19597ac3e8f1298d7fff85071965
parenta25314af4b112d0d740f6c4e954a72ff4cf86b3d
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>
[sandeen: remove b_maps[0].bm_bn assignment in alloc_write_buf now]
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
16 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
mkfs/xfs_mkfs.c
repair/dino_chunks.c
repair/prefetch.c