mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
bcachefs: Add missing recalc_capacity() call
This fixes filesystem size not changing on device removal. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
1aaf5cb41b
commit
36da8e387b
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user