summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-07-19 23:20:18 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:37 +0200
commit1ed0a5d280ef7a1183b42b2fcc13d919925f1b6e (patch)
tree1bbed805fd079f8991867b0085a00e7c2d0b02de /fs/bcachefs/recovery.c
parentbcachefs: Inject transaction restarts in debug mode (diff)
downloadlinux-1ed0a5d280ef7a1183b42b2fcc13d919925f1b6e.tar.xz
linux-1ed0a5d280ef7a1183b42b2fcc13d919925f1b6e.zip
bcachefs: Convert fsck errors to errcode.h
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r--fs/bcachefs/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index bb04b6f053cc..2cf347530b65 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -1158,7 +1158,7 @@ int bch2_fs_recovery(struct bch_fs *c)
use_clean:
if (!clean) {
bch_err(c, "no superblock clean section found");
- ret = BCH_FSCK_REPAIR_IMPOSSIBLE;
+ ret = -BCH_ERR_fsck_repair_impossible;
goto err;
}