summaryrefslogtreecommitdiff
path: root/libbcachefs/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-03-31 05:12:36 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-03-31 05:12:36 -0800
commit4921d02142fec87999cba32e991bb62c2a80184d (patch)
tree7d5b59a8ae6fc3116da28903f14d835a86511799 /libbcachefs/super.c
parentc0ad33c126300a51721a4f0ec8c0d757647e9cbe (diff)
Update bcachefs sources
Diffstat (limited to 'libbcachefs/super.c')
-rw-r--r--libbcachefs/super.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbcachefs/super.c b/libbcachefs/super.c
index 1977bdc4..366fa672 100644
--- a/libbcachefs/super.c
+++ b/libbcachefs/super.c
@@ -727,7 +727,8 @@ static const char *__bch2_fs_start(struct bch_fs *c)
bch_verbose(c, "starting mark and sweep:");
err = "error in recovery";
- if (bch2_initial_gc(c, &journal))
+ ret = bch2_initial_gc(c, &journal);
+ if (ret)
goto err;
if (c->opts.noreplay)
@@ -777,7 +778,9 @@ static const char *__bch2_fs_start(struct bch_fs *c)
bch_notice(c, "initializing new filesystem");
- bch2_initial_gc(c, NULL);
+ ret = bch2_initial_gc(c, &journal);
+ if (ret)
+ goto err;
err = "unable to allocate journal buckets";
for_each_rw_member(ca, c, i)