diff options
Diffstat (limited to 'libbcachefs/super.c')
-rw-r--r-- | libbcachefs/super.c | 7 |
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) |