]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: Print out OPT_SECTORS options in bytes
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 10 Dec 2021 19:03:42 +0000 (14:03 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:18 +0000 (17:09 -0400)
This matches the conversion the parsing code does.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/opts.c

index a955ef2008c935c019f30784dab9e849763b36a7..e81e07a383bb379afff9776bb50b7e98e7ccec5e 100644 (file)
@@ -291,7 +291,7 @@ void bch2_opt_to_text(struct printbuf *out, struct bch_fs *c,
                pr_buf(out, "%lli", v);
                break;
        case BCH_OPT_SECTORS:
-               bch2_hprint(out, v);
+               bch2_hprint(out, v << 9);
                break;
        case BCH_OPT_STR:
                if (flags & OPT_SHOW_FULL_LIST)