diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-04 21:57:35 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:54 -0400 |
commit | 19dd3172b0002a3a5f8ead324db03a72c0cac2a2 (patch) | |
tree | d0162724c9802b1676f30310b2101882c73b5a81 /fs/bcachefs/opts.c | |
parent | 33a391a2551beca12926c77b16404f6aab2e8f58 (diff) |
bcachefs: Use x-macros for compat feature bits
This is to generate strings for them, so that we can print them out.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.c')
-rw-r--r-- | fs/bcachefs/opts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/bcachefs/opts.c b/fs/bcachefs/opts.c index 97a36ac0beea..d53b6dccd161 100644 --- a/fs/bcachefs/opts.c +++ b/fs/bcachefs/opts.c @@ -23,6 +23,13 @@ const char * const bch2_sb_features[] = { NULL }; +const char * const bch2_sb_compat[] = { +#define x(f, n) #f, + BCH_SB_COMPAT() +#undef x + NULL +}; + const char * const bch2_csum_opts[] = { "none", "crc32c", |