aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@linux.dev> 2024-06-23 10:10:43 -0400
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2024-06-23 10:12:51 -0400
commit36da8e387b0632d4c43d67849a5b506fa79fcadd (patch)
treed1ab40344b209b0bfa5fc0aeb570147517cbfb42 /fs
parentbcachefs: Fix btree_trans list ordering (diff)
downloadlinux-36da8e387b0632d4c43d67849a5b506fa79fcadd.tar.gz
linux-36da8e387b0632d4c43d67849a5b506fa79fcadd.tar.bz2
linux-36da8e387b0632d4c43d67849a5b506fa79fcadd.zip
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);
}