]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: make cow repair somewhat flaky when debugging knob enabled
authorDarrick J. Wong <djwong@kernel.org>
Tue, 14 Jul 2026 06:04:24 +0000 (23:04 -0700)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jul 2026 09:01:47 +0000 (11:01 +0200)
commitbcb0621204e6999bb8f3a6c7deb5c6abfe0f197b
tree95c698fee5e125213d625e36a38229a1a0cdbdfc
parenta1caeeadbf57ff86dfc3454398c46de86056a74e
xfs: make cow repair somewhat flaky when debugging knob enabled

Introduce a new behavior for the cow fork repair code: if the debugging
knob is enabled, we'll pick a random subrange of each cow fork mapping
to mark as bad.  This will exercise the xrep_cow_replace_mapping more
thoroughly.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/scrub/cow_repair.c