From: Kent Overstreet Date: Sun, 23 Jun 2024 14:10:43 +0000 (-0400) Subject: bcachefs: Add missing recalc_capacity() call X-Git-Tag: v6.10-rc6~21^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36da8e387b0632d4c43d67849a5b506fa79fcadd;p=thirdparty%2Flinux.git bcachefs: Add missing recalc_capacity() call This fixes filesystem size not changing on device removal. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 9083df82073a5..641f2975177b6 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); }