mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
bcachefs: Fix journal replay when replicas sb section missing
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
636ad1d391
commit
6bdbfa87a8
1 changed files with 2 additions and 1 deletions
|
@ -746,7 +746,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 ||
|
||||
|
|
Loading…
Add table
Reference in a new issue