xfs: give xfs_refcount_intent its own perag reference
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 01:59:55 +0000 (18:59 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 01:59:55 +0000 (18:59 -0700)
commit00e7b3bac1dc8961bd5aa9d39e79131c6bd81181
tree90c862df9c6e7e73fbd41ba3eddc227c30879832
parentc13418e8eb375872ad297aeec5fa26277febc155
xfs: give xfs_refcount_intent its own perag reference

Give the xfs_refcount_intent a passive reference to the perag structure
data.  This reference will be used to enable scrub intent draining
functionality in subsequent patches.  Any space being modified by a
refcount intent 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_refcount.c
fs/xfs/libxfs/xfs_refcount.h
fs/xfs/xfs_refcount_item.c