xfs: give xfs_extfree_intent its own perag reference
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 01:59:54 +0000 (18:59 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 01:59:54 +0000 (18:59 -0700)
commitf6b384631e1e3482c24e35b53adbd3da50e47e8f
treeb78d430925aa0201c12b45fedae03d6a2c5e4418
parentb2ccab3199aa7cea9154d80ea2585312c5f6eba0
xfs: give xfs_extfree_intent its own perag reference

Give the xfs_extfree_intent an passive reference to the perag structure
data.  This reference will be used to enable scrub intent draining
functionality in subsequent patches.  The space being freed must already
be allocated, so we need to able to run even if the AG is being offlined
or shrunk.

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