diff options
author | Dave Chinner <david@fromorbit.com> | 2023-04-14 07:08:38 +1000 |
---|---|---|
committer | Dave Chinner <dchinner@redhat.com> | 2023-04-14 07:08:38 +1000 |
commit | 826053db98ec6ea2469f02571401422da539e5e3 (patch) | |
tree | 3fae119ae64e75e774b4ab108c3ee7f0f06e73b4 /fs/xfs/libxfs/xfs_bmap.c | |
parent | bed25d8010bcf48de626545a89ea58550fb5e95b (diff) | |
parent | 00e7b3bac1dc8961bd5aa9d39e79131c6bd81181 (diff) | |
download | lwn-826053db98ec6ea2469f02571401422da539e5e3.tar.gz lwn-826053db98ec6ea2469f02571401422da539e5e3.zip |
Merge tag 'intents-perag-refs-6.4_2023-04-11' of git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux into guilt/xfs-for-next
xfs: make intent items take a perag reference [v24.5]
Now that we've cleaned up some code warts in the deferred work item
processing code, let's make intent items take an active perag reference
from their creation until they are finally freed by the defer ops
machinery. This change facilitates the scrub drain in the next patchset
and will make it easier for the future AG removal code to detect a busy
AG in need of quiescing.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index f11ef331e5a4..3eeb1cc9c636 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -6081,6 +6081,7 @@ __xfs_bmap_add( bi->bi_whichfork = whichfork; bi->bi_bmap = *bmap; + xfs_bmap_update_get_group(tp->t_mountp, bi); xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_BMAP, &bi->bi_list); return 0; } |