summaryrefslogtreecommitdiff
path: root/fs/bcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-11-04 22:09:51 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:11 -0400
commit8b335baef22768deb7140e45f32f37ea51a1faf4 (patch)
tree47e503994a655cbef184189b655c1d77576e5478 /fs/bcachefs/recovery.c
parentb092dadd55fb242a480f81c421303a9e53302156 (diff)
downloadlwn-8b335baef22768deb7140e45f32f37ea51a1faf4.tar.gz
lwn-8b335baef22768deb7140e45f32f37ea51a1faf4.zip
bcachefs: Assorted fixes for running on very small devices
It's now possible to create and use a filesystem on a 512k device with 4k buckets (though at that size we still waste almost half to internal reserves) Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r--fs/bcachefs/recovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index e21551e8d6cc..696e01f4962f 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -278,7 +278,7 @@ out:
return ret;
err:
fsck_err:
- BUG_ON(!ret);
+ pr_err("Error in recovery: %s (%i)", err, ret);
goto out;
}
@@ -381,6 +381,6 @@ int bch2_fs_initialize(struct bch_fs *c)
return 0;
err:
- BUG_ON(!ret);
+ pr_err("Error initializing new filesystem: %s (%i)", err, ret);
return ret;
}