summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-06-23 10:10:43 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-06-23 10:12:51 -0400
commit36da8e387b0632d4c43d67849a5b506fa79fcadd (patch)
treed1ab40344b209b0bfa5fc0aeb570147517cbfb42 /fs
parent1aaf5cb41b8e92dcd3ac7e047124cb0e3e27f1c1 (diff)
bcachefs: Add missing recalc_capacity() call
This fixes filesystem size not changing on device removal. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r--fs/bcachefs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c
index 9083df82073a..641f2975177b 100644
--- a/fs/bcachefs/super.c
+++ b/fs/bcachefs/super.c
@@ -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);
}