diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-07-09 18:28:11 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:42 -0400 |
commit | 89fd25be70b4e3fc540d4cf591a02898470f1ef0 (patch) | |
tree | 1aa41853a7fee8ebe3348527bdd47136e28a8768 /fs/bcachefs/opts.c | |
parent | 912bdf17a849990f7241e294e48629987553b94c (diff) |
bcachefs: Use x-macros for data types
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.c')
-rw-r--r-- | fs/bcachefs/opts.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/bcachefs/opts.c b/fs/bcachefs/opts.c index 94d6c044a27d..afe25cd26c06 100644 --- a/fs/bcachefs/opts.c +++ b/fs/bcachefs/opts.c @@ -45,12 +45,9 @@ const char * const bch2_str_hash_types[] = { }; const char * const bch2_data_types[] = { - "none", - "sb", - "journal", - "btree", - "data", - "cached", +#define x(t, n) #t, + BCH_DATA_TYPES() +#undef x NULL }; |