]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: give xfs_rmap_intent its own perag reference
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 May 2023 08:49:36 +0000 (10:49 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jun 2023 08:27:50 +0000 (10:27 +0200)
commit818f0c29db7f166d5e9ba039c6e008d4d3b72f72
treea5172df15cb79cb348715af5f30b9f97236f4e21
parent7fef0c11117bfabcbe87288ad4ef611bd62a845c
xfs: give xfs_rmap_intent its own perag reference

Source kernel commit: c13418e8eb375872ad297aeec5fa26277febc155

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/defer_item.c
libxfs/xfs_rmap.c
libxfs/xfs_rmap.h