Skip to content

Commit 36da8e3

Browse files
author
Kent Overstreet
committed
bcachefs: Add missing recalc_capacity() call
This fixes filesystem size not changing on device removal. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 1aaf5cb commit 36da8e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/bcachefs/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,7 @@ static void __bch2_dev_read_only(struct bch_fs *c, struct bch_dev *ca)
15291529
* The allocator thread itself allocates btree nodes, so stop it first:
15301530
*/
15311531
bch2_dev_allocator_remove(c, ca);
1532+
bch2_recalc_capacity(c);
15321533
bch2_dev_journal_stop(&c->journal, ca);
15331534
}
15341535

0 commit comments

Comments
 (0)