bcachefs: Fix __bch2_dev_group_set()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 1 May 2025 02:37:13 +0000 (22:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 1 May 2025 16:22:10 +0000 (12:22 -0400)
commite2699274d5a43b95af1b806aa6e3b1157107665d
treeb03f64d2b07745d8242625bb23cfacea4f8c385a
parente660d7ca7488214ae19d964d196f89b4237ec829
bcachefs: Fix __bch2_dev_group_set()

bch2_sb_disk_groups_to_cpu() goes off of the superblock member info, so
we need to set that first.

Reported-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/disk_groups.c