bcachefs: Don't use key cache during fsck
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 14 Oct 2022 11:02:36 +0000 (07:02 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:51 +0000 (17:09 -0400)
commit53b1c6f44b1a98ea6def11b74c1fde9710f2a0b9
treec159854a027182913261e2e4bea9aff9ae34e401
parentb32f9a577b8d532d31ee7d71e58d1ec512a25a9a
bcachefs: Don't use key cache during fsck

The btree key cache mainly helps with lock contention, at the cost of
additional memory overhead. During some fsck passes the memory overhead
really matters, but fsck is single threaded so lock contention is an
issue - so skipping the key cache during fsck will help with
performance.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_foreground.c
fs/bcachefs/backpointers.c
fs/bcachefs/backpointers.h
fs/bcachefs/ec.c
fs/bcachefs/move.c