xfs: force small EFIs for reaping btree extents
authorDarrick J. Wong <djwong@kernel.org>
Thu, 7 Dec 2023 02:41:00 +0000 (18:41 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 7 Dec 2023 02:45:19 +0000 (18:45 -0800)
commit3f3cec031099c37513727efc978a12b6346e326d
tree4c5531dc1d3af2714aa03eabd8946e492d4624ab
parent6bb9ea8ecd2c58a66324cb799838e7d49d78a877
xfs: force small EFIs for reaping btree extents

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>
fs/xfs/libxfs/xfs_defer.c
fs/xfs/libxfs/xfs_defer.h
fs/xfs/scrub/reap.c