]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Only run check_backpointers_to_extents in debug mode
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 15 Nov 2024 01:47:32 +0000 (20:47 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 29 Dec 2024 18:30:39 +0000 (13:30 -0500)
commitd884cf189a92881c02fa22b2318bf8fcbbd61297
tree705367b348f45df7eb0e8eb92e46043e7b6fcd8e
parent7611d6b5d1c12e2210c6f1283232fcb16b685de1
bcachefs: Only run check_backpointers_to_extents in debug mode

The backpointers passes, check_backpointers_to_extents() and
check_extents_to_backpointers() are the most expensive fsck passes.

Now that we're running the same check and repair code when using a
backpointer at runtime (via bch2_backpointer_get_key()) that fsck does,
there's no reason fsck needs to - except to verify that the filesystem
really has no errors in debug mode.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/recovery_passes_types.h
fs/bcachefs/sb-errors_format.h