Update bcachefs sources to 00c04f8485 bcachefs: Fix for shutting down before fs started marking it clean

This commit is contained in:
Kent Overstreet 2019-03-10 14:56:38 -04:00
parent ed0993c1e2
commit 88da4def1b
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
ca1a2ff489de98e3adc2a49c49e4b26a2f7fd6d3 00c04f8485db33178b98f67d7c106e3b49fb5b67

View File

@ -330,7 +330,8 @@ void bch2_fs_read_only(struct bch_fs *c)
if (!bch2_journal_error(&c->journal) && if (!bch2_journal_error(&c->journal) &&
!test_bit(BCH_FS_ERROR, &c->flags) && !test_bit(BCH_FS_ERROR, &c->flags) &&
!test_bit(BCH_FS_EMERGENCY_RO, &c->flags)) !test_bit(BCH_FS_EMERGENCY_RO, &c->flags) &&
test_bit(BCH_FS_STARTED, &c->flags))
bch2_fs_mark_clean(c, true); bch2_fs_mark_clean(c, true);
if (c->state != BCH_FS_STOPPING) if (c->state != BCH_FS_STOPPING)