summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-01-06 20:57:43 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-21 06:01:45 -0500
commite58f963cecbdb08f28334122afba93a7840beabc (patch)
tree0a5e9dd89fceeb1fbd8550958dfe44d1d7981cad /fs/bcachefs/super.c
parent38c23fb809f60bda1adfc431b18200b8f68c2025 (diff)
downloadlinux-e58f963cecbdb08f28334122afba93a7840beabc.tar.gz
linux-e58f963cecbdb08f28334122afba93a7840beabc.tar.bz2
linux-e58f963cecbdb08f28334122afba93a7840beabc.zip
bcachefs: helpers for printing data types
We need bounds checking since new versions may introduce new data types. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.c')
-rw-r--r--fs/bcachefs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c
index 9dbc35940197..a3ec21f229ed 100644
--- a/fs/bcachefs/super.c
+++ b/fs/bcachefs/super.c
@@ -1625,7 +1625,7 @@ int bch2_dev_remove(struct bch_fs *c, struct bch_dev *ca, int flags)
if (data) {
struct printbuf data_has = PRINTBUF;
- prt_bitflags(&data_has, bch2_data_types, data);
+ prt_bitflags(&data_has, __bch2_data_types, data);
bch_err(ca, "Remove failed, still has data (%s)", data_has.buf);
printbuf_exit(&data_has);
ret = -EBUSY;