]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: force small EFIs for reaping btree extents
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:34 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:24 +0000 (14:06 -0700)
commit63644c545a6628fef0dd4f53d88dd62e38d5db6b
treefa28995a05fe22f0cbb8ff964133d0af0de48649
parentae2063cd00524597e19c4fa6cbc02d4659ebd32d
xfs: force small EFIs for reaping btree extents

Source kernel commit: 3f3cec031099c37513727efc978a12b6346e326d

Introduce the concept of a defer ops barrier to separate consecutively
queued pending work items of the same type.  With a barrier in place,
the two work items will be tracked separately, and receive separate log
intent items.  The goal here is to prevent reaping of old metadata
blocks from creating unnecessarily huge EFIs that could then run the
risk of overflowing the scrub transaction.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_defer.c
libxfs/xfs_defer.h