]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: give xfs_bmap_intent its own perag reference
authorDarrick J. Wong <djwong@kernel.org>
Fri, 26 May 2023 13:16:03 +0000 (15:16 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jun 2023 08:27:28 +0000 (10:27 +0200)
commit32debad7cda40bfa9ecf094cee240f4ec12fb3f2
treedeb76b5ac0f02a0ad63e5ecbf1947f456c3258a1
parent36100197818eee4e90db5389c3fd12ce63043382
xfs: give xfs_bmap_intent its own perag reference

Source kernel commit: 774a99b47b588bf0bd9f65d3b241d5bba0b2fcb0

Give the xfs_bmap_intent an active reference to the perag structure
data.  This reference will be used to enable scrub intent draining
functionality in subsequent patches.  Later, shrink will use these
passive references to know if an AG is quiesced or not.

The reason why we take a passive ref for a file mapping operation is
simple: we're committing to some sort of action involving space in an
AG, so we want to indicate our interest in that AG.  The space is
already allocated, so we need to be able to operate on AGs that are
offline or being shrunk.

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_bmap.c
libxfs/xfs_bmap.h