diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-05 12:01:16 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:27 -0400 |
commit | 5521b1dfa20262a9cb8d1214c095c9ca2a4cb127 (patch) | |
tree | 9b325632f659d23c241d2c67567e331c654ebdb4 /fs/bcachefs/sysfs.c | |
parent | 4eea53de8a1882e75d3640dce06c8c2874a77b05 (diff) | |
download | linux-5521b1dfa20262a9cb8d1214c095c9ca2a4cb127.tar.gz linux-5521b1dfa20262a9cb8d1214c095c9ca2a4cb127.tar.bz2 linux-5521b1dfa20262a9cb8d1214c095c9ca2a4cb127.zip |
bcachefs: Convert bch2_sb_to_text to master option list
Options no longer have to be manually added to bch2_sb_to_text() - it
now uses the master list of options in opts.h. Also, improve some of the
formatting by converting it to tabstops.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r-- | fs/bcachefs/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index 3018250d421b..49e38859bff8 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -597,7 +597,7 @@ SHOW(bch2_fs_opts_dir) int id = opt - bch2_opt_table; u64 v = bch2_opt_get_by_id(&c->opts, id); - bch2_opt_to_text(out, c, opt, v, OPT_SHOW_FULL_LIST); + bch2_opt_to_text(out, c, c->disk_sb.sb, opt, v, OPT_SHOW_FULL_LIST); pr_char(out, '\n'); return 0; |