Commit 36da8e38 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Add missing recalc_capacity() call

This fixes filesystem size not changing on device removal.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 1aaf5cb4
......@@ -1529,6 +1529,7 @@ static void __bch2_dev_read_only(struct bch_fs *c, struct bch_dev *ca)
* The allocator thread itself allocates btree nodes, so stop it first:
*/
bch2_dev_allocator_remove(c, ca);
bch2_recalc_capacity(c);
bch2_dev_journal_stop(&c->journal, ca);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment