From: Kent Overstreet Date: Sat, 9 Feb 2019 23:24:20 +0000 (-0500) Subject: bcachefs: fix bch2_sb_field_resize() X-Git-Tag: io_uring-6.7-2023-11-10~119^2~2593 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=24547d097a520312cf9d727d3af8da1b0c985f98;p=linux-block.git bcachefs: fix bch2_sb_field_resize() Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index dafdc45b442c..2ad1266e167d 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -188,6 +188,7 @@ struct bch_sb_field *bch2_sb_field_resize(struct bch_sb_handle *sb, } } + f = bch2_sb_field_get(sb->sb, type); f = __bch2_sb_field_resize(sb, f, u64s); if (f) f->type = cpu_to_le32(type);