diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-03 21:51:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-03 21:55:33 -0400 |
commit | 167558dc63d8e6005806289bc1a657e319972423 (patch) | |
tree | e10b6fadb0dd92b400e89d5caca1c31616760319 | |
parent | b12d1535f33661c5f11925d9a2debe28be661088 (diff) |
bcachefs: Fix journal replay when replicas sb section missing
-rw-r--r-- | fs/bcachefs/journal_io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index 0cb1bc3c0df7..f271da764a91 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -741,7 +741,8 @@ int bch2_journal_read(struct bch_fs *c, struct list_head *list) jlist.ret = 0; for_each_member_device(ca, c, iter) { - if (!(bch2_dev_has_data(c, ca) & (1 << BCH_DATA_JOURNAL))) + if (!test_bit(BCH_FS_REBUILD_REPLICAS, &c->flags) && + !(bch2_dev_has_data(c, ca) & (1 << BCH_DATA_JOURNAL))) continue; if ((ca->mi.state == BCH_MEMBER_STATE_RW || |