]> git.ipfire.org Git - people/ms/linux.git/commit - fs/xfs/scrub/fscounters.c
xfs: pass perag to xfs_ialloc_read_agi()
authorDave Chinner <dchinner@redhat.com>
Thu, 7 Jul 2022 09:07:24 +0000 (19:07 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 7 Jul 2022 09:07:24 +0000 (19:07 +1000)
commit99b13c7f0bd35dd3cf2cacb61beb4557dc2b6f9b
tree1174196490dcacc646d59cbed2cc3cd6cb5b6cbf
parenta95fee40e3d433d8fabff7c02e75f7c2c2e54400
xfs: pass perag to xfs_ialloc_read_agi()

xfs_ialloc_read_agi() initialises the perag if it hasn't been done
yet, so it makes sense to pass it the perag rather than pull a
reference from the buffer. This allows callers to be per-ag centric
rather than passing mount/agno pairs everywhere.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_ialloc.h
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/scrub/common.c
fs/xfs/scrub/fscounters.c
fs/xfs/scrub/repair.c