diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-10 20:03:42 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:18 +0200 |
commit | f44906775981e368b77474f0c0750e9d1a4f229b (patch) | |
tree | 579d89efd6ed98382053dc78d92cf73efa3828bf /fs/bcachefs/opts.c | |
parent | bcachefs: Fix null ptr deref in fsck_inode_rm() (diff) | |
download | linux-f44906775981e368b77474f0c0750e9d1a4f229b.tar.xz linux-f44906775981e368b77474f0c0750e9d1a4f229b.zip |
bcachefs: Print out OPT_SECTORS options in bytes
This matches the conversion the parsing code does.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/opts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/opts.c b/fs/bcachefs/opts.c index a955ef2008c9..e81e07a383bb 100644 --- a/fs/bcachefs/opts.c +++ b/fs/bcachefs/opts.c @@ -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) |