summaryrefslogtreecommitdiff
path: root/libbcachefs/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-06-13 15:06:46 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-06-13 15:06:46 -0400
commitba88873432ec9621b9913c00b31d7401357b5e55 (patch)
tree63c35b790e7b3863058cd7c3ea94d2fedba6954a /libbcachefs/super.c
parent17d1c4f4fe29453fbb4087eb5de8aa6f9e6605c7 (diff)
Update bcachefs sources to 01d7ad6d95 bcachefs: snapshot_to_text() includes snapshot tree
Diffstat (limited to 'libbcachefs/super.c')
-rw-r--r--libbcachefs/super.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbcachefs/super.c b/libbcachefs/super.c
index a659f806..2754f023 100644
--- a/libbcachefs/super.c
+++ b/libbcachefs/super.c
@@ -302,6 +302,11 @@ void bch2_fs_read_only(struct bch_fs *c)
test_bit(BCH_FS_STARTED, &c->flags) &&
test_bit(BCH_FS_CLEAN_SHUTDOWN, &c->flags) &&
!c->opts.norecovery) {
+ BUG_ON(c->journal.last_empty_seq != journal_cur_seq(&c->journal));
+ BUG_ON(atomic_read(&c->btree_cache.dirty));
+ BUG_ON(atomic_long_read(&c->btree_key_cache.nr_dirty));
+ BUG_ON(c->btree_write_buffer.state.nr);
+
bch_verbose(c, "marking filesystem clean");
bch2_fs_mark_clean(c);
}