]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: bch2_count_fsck_err()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 28 Mar 2025 16:15:32 +0000 (12:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Mar 2025 17:26:13 +0000 (13:26 -0400)
commit7337f9f14e0e2dbd2da50ade0cd7e58df6c7af6d
tree37cb1fb94e5eaed48bf2ee4073deb34ce75f5f92
parentb00750c2e5f09b90fdd370ff3f9581b880ad86fd
bcachefs: bch2_count_fsck_err()

Factor out a helper from __bch2_fsck_err(), for counting the error in
the superblock and deciding whether to print or ratelimit - will be used
to replace some log_fsck_err() calls, where we want to lift out printing
the error message.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/error.c
fs/bcachefs/error.h
fs/bcachefs/fsck.c