diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-03-09 14:53:03 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-03-17 14:30:13 -0400 |
commit | 64833f8b384228f879309a13db0069114a6697a6 (patch) | |
tree | 47b1e1954d6e18a8b379bcb77633b2951962f4d6 | |
parent | 1116e61a1b24769a259e08cbdf0000f1a2ff3572 (diff) |
bcachefs: Fix for shutting down before fs started marking it clean
-rw-r--r-- | fs/bcachefs/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 4ec8a0b5a93c..1b3891726639 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -330,7 +330,8 @@ void bch2_fs_read_only(struct bch_fs *c) if (!bch2_journal_error(&c->journal) && !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); if (c->state != BCH_FS_STOPPING) |