]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: give xfs_extfree_intent its own perag reference
authorDarrick J. Wong <djwong@kernel.org>
Fri, 26 May 2023 14:03:29 +0000 (16:03 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jun 2023 08:27:50 +0000 (10:27 +0200)
commit7fef0c11117bfabcbe87288ad4ef611bd62a845c
tree8543721a27d95afb201a7126f2b70490e9aad0a6
parent42c1e5c18e5ee1547aa21eec1caa5371a958d4a7
xfs: give xfs_extfree_intent its own perag reference

Source kernel commit: f6b384631e1e3482c24e35b53adbd3da50e47e8f

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