bcachefs: Fix adding a device with a label
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 18 Aug 2022 21:57:24 +0000 (17:57 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:39 +0000 (17:09 -0400)
commit02afcb8c26b14ae317754d8c79339f41b3dfeaae
tree00ece659f7a8ee8aa78d5f9c787dca6c1630fd33
parent12043cf1511420ecf38f4925a0089c1ae1aa058b
bcachefs: Fix adding a device with a label

Device labels are represented as pointers in the member info section: we
need to get and then set the label for it to be kept correctly.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/disk_groups.c
fs/bcachefs/disk_groups.h
fs/bcachefs/super.c