xfs: remove XFS_BUF_TO_AGI
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Mar 2020 15:57:29 +0000 (08:57 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Mar 2020 16:11:38 +0000 (09:11 -0700)
commit370c782b98436bb3f9d14a7394ab126cdbeac233
tree5a0a2f25adbc9cbb845503c130b443deb4b6508f
parent4b97510859b22e0db5edf104096af1132daeea9a
xfs: remove XFS_BUF_TO_AGI

Just dereference bp->b_addr directly and make the code a little
simpler and more clear.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/scrub/agheader.c
fs/xfs/scrub/agheader_repair.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_log_recover.c