]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: compute realtime device CoW staging extent reap limits dynamically
authorDarrick J. Wong <djwong@kernel.org>
Tue, 8 Apr 2025 23:14:34 +0000 (16:14 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 5 Sep 2025 15:48:22 +0000 (08:48 -0700)
commit74fc66ee17fcd994a49ed80ddba90bc3b7046684
tree712696ff93a6c543374e1ca123830d1cb46f3e8a
parent442bc127d460a807858ef9258e77518b9597eed1
xfs: compute realtime device CoW staging extent reap limits dynamically

Calculate the maximum number of CoW staging extents that can be reaped
in a single transaction chain.  The rough calculation here is:

nr_extents = (logres - reservation used by any one step) /
(space used by intents per extent)

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/reap.c
fs/xfs/scrub/trace.h