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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}