diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-13 03:31:25 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-14 05:00:50 +0200 |
commit | d97de0d017cde0d442c3d144b4f969f43064cc0f (patch) | |
tree | db8263c878ea0b3cc56c52faf6df1a16f726996e /fs/sysfs/dir.c | |
parent | bcachefs: Fix warning in __bch2_fsck_err() for trans not passed in (diff) | |
download | linux-d97de0d017cde0d442c3d144b4f969f43064cc0f.tar.xz linux-d97de0d017cde0d442c3d144b4f969f43064cc0f.zip |
bcachefs: Make bkey_fsck_err() a wrapper around fsck_err()
bkey_fsck_err() was added as an interface that looks like fsck_err(),
but previously all it did was ensure that the appropriate error counter
was incremented in the superblock.
This is a cleanup and bugfix patch that converts it to a wrapper around
fsck_err(). This is needed to fix an issue with the upgrade path to
disk_accounting_v3, where the "silent fix" error list now includes
bkey_fsck errors; fsck_err() handles this in a unified way, and since we
need to change printing of bkey fsck errors from the caller to the inner
bkey_fsck_err() calls, this ends up being a pretty big change.
Als,, rename .invalid() methods to .validate(), for clarity, while we're
changing the function signature anyways (to drop the printbuf argument).
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/sysfs/dir.c')
0 files changed, 0 insertions, 0 deletions