xfs: give xfs_rmap_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)
commitc13418e8eb375872ad297aeec5fa26277febc155
tree29db62f65f40be3923491ea28177706589d2f525
parentf6b384631e1e3482c24e35b53adbd3da50e47e8f
xfs: give xfs_rmap_intent its own perag reference

Give the xfs_rmap_intent a passive reference to the perag structure
data.  This reference will be used to enable scrub intent draining
functionality in subsequent patches.  The space we're (reverse) mapping
is already allocated, so we need to be able to operate even if the AG is
being shrunk or offlined.

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