diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-13 19:27:55 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:29 -0400 |
commit | 3e1547116fe70f49c88e1ee400966a1c7b1bec3a (patch) | |
tree | aed1c4cc0a205642478c18bbdd8525a17394fe34 /fs/bcachefs/sysfs.c | |
parent | f13fd87a39225eae57d4ddf824a09acb1955abd1 (diff) |
bcachefs: x-macroize alloc_reserve enum
This makes an array of strings available, like our other enums.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r-- | fs/bcachefs/sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index dc67506e08d7..7e10adba5c75 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -758,8 +758,8 @@ static void dev_alloc_debug_to_text(struct printbuf *out, struct bch_dev *ca) stats.buckets_ec, __dev_buckets_available(ca, stats), fifo_used(&ca->free_inc), ca->free_inc.size, - fifo_used(&ca->free[RESERVE_MOVINGGC]), ca->free[RESERVE_MOVINGGC].size, - fifo_used(&ca->free[RESERVE_NONE]), ca->free[RESERVE_NONE].size, + fifo_used(&ca->free[RESERVE_movinggc]), ca->free[RESERVE_movinggc].size, + fifo_used(&ca->free[RESERVE_none]), ca->free[RESERVE_none].size, c->freelist_wait.list.first ? "waiting" : "empty", OPEN_BUCKETS_COUNT - c->open_buckets_nr_free, ca->nr_open_buckets, |