mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
bcachefs: assert that online_reserved == 0 on shutdown
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
fd104e2967
commit
feb255537d
@ -573,6 +573,7 @@ static void __bch2_fs_free(struct bch_fs *c)
|
||||
BUG_ON(atomic_read(&c->journal_keys.ref));
|
||||
bch2_fs_btree_write_buffer_exit(c);
|
||||
percpu_free_rwsem(&c->mark_lock);
|
||||
EBUG_ON(percpu_u64_get(c->online_reserved));
|
||||
free_percpu(c->online_reserved);
|
||||
|
||||
darray_exit(&c->btree_roots_extra);
|
||||
|
Loading…
Reference in New Issue
Block a user