]> Gentwo Git Trees - linux/.git/commit
xfs: remove static reap limits from repair.h
authorDarrick J. Wong <djwong@kernel.org>
Tue, 8 Apr 2025 23:14:36 +0000 (16:14 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 5 Sep 2025 15:48:23 +0000 (08:48 -0700)
commitd5b157e088c9fb72e2f245fd5cd43a373c4de677
treef42e0c538091d089aff5cb14850136ed37b28e6f
parente4c7eece7676bac436a8f98b91d646a8b55a67af
xfs: remove static reap limits from repair.h

Delete XREAP_MAX_BINVAL and XREAP_MAX_DEFER_CHAIN because the reap code
now calculates those limits dynamically, so they're no longer needed.

Move the third limit (XREP_MAX_ITRUNCATE_EFIS) to the one file that uses
it.  Note that the btree rebuilding code should reserve exactly the
number of blocks needed to rebuild a btree, so it is rare that the newbt
code will need to add any EFIs to the commit transaction.  That's why
that static limit remains.

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