xfs: pass per-ag references to xfs_free_extent
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 01:59:53 +0000 (18:59 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 01:59:53 +0000 (18:59 -0700)
commitb2ccab3199aa7cea9154d80ea2585312c5f6eba0
tree9c9470ad68210809dc45698a1ab0f64a8b332190
parent774a99b47b588bf0bd9f65d3b241d5bba0b2fcb0
xfs: pass per-ag references to xfs_free_extent

Pass a reference to the per-AG structure to xfs_free_extent.  Most
callers already have one, so we can eliminate unnecessary lookups.  The
one exception to this is the EFI code, which the next patch will fix.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/scrub/repair.c
fs/xfs/xfs_extfree_item.c