From: Kent Overstreet Date: Sat, 9 Feb 2019 23:24:20 +0000 (-0500) Subject: bcachefs: fix bch2_sb_field_resize() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=24547d097a520312cf9d727d3af8da1b0c985f98;p=linux.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 dafdc45b442cc..2ad1266e167d1 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);