]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
bcachefs: fix bch2_sb_field_resize()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 9 Feb 2019 23:24:20 +0000 (18:24 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:15 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super-io.c

index dafdc45b442cc7ac40f74e4447ab2a97dafecdbc..2ad1266e167d14a95f640baa432cd600bfa0feec 100644 (file)
@@ -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);