From 4921d02142fec87999cba32e991bb62c2a80184d Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 31 Mar 2017 05:12:36 -0800 Subject: Update bcachefs sources --- libbcachefs/super.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libbcachefs/super.c') 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) -- cgit v1.2.3