projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6548c8
)
bcachefs: Print size of superblock with space allocated
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 15 Jan 2024 22:57:44 +0000
(17:57 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 21 Jan 2024 18:27:09 +0000
(13:27 -0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super-io.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/super-io.c
b/fs/bcachefs/super-io.c
index
55926b8
..
9564d2d
100644
(file)
--- a/
fs/bcachefs/super-io.c
+++ b/
fs/bcachefs/super-io.c
@@
-1320,7
+1320,9
@@
void bch2_sb_to_text(struct printbuf *out, struct bch_sb *sb,
prt_printf(out, "Superblock size:");
prt_tab(out);
- prt_printf(out, "%zu", vstruct_bytes(sb));
+ prt_units_u64(out, vstruct_bytes(sb));
+ prt_str(out, "/");
+ prt_units_u64(out, 512ULL << sb->layout.sb_max_size_bits);
prt_newline(out);
prt_printf(out, "Clean:");