projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5147b9a
)
bcachefs: Add btree_allocated_bitmap to member_to_text()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 20 Apr 2024 20:50:46 +0000
(16:50 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:20 +0000
(17:29 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sb-members.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/sb-members.c
b/fs/bcachefs/sb-members.c
index 50dc9f937c45d4735f6d209982a3d4c5a8777e1c..52054f26982f66cfcc6a49ebfdaaf37d2b9b8421 100644
(file)
--- a/
fs/bcachefs/sb-members.c
+++ b/
fs/bcachefs/sb-members.c
@@
-234,6
+234,14
@@
static void member_to_text(struct printbuf *out,
prt_printf(out, "(none)");
prt_newline(out);
+ prt_printf(out, "Btree allocated bitmap blocksize:\t");
+ prt_units_u64(out, 1ULL << m.btree_bitmap_shift);
+ prt_newline(out);
+
+ prt_printf(out, "Btree allocated bitmap:\t");
+ bch2_prt_u64_base2_nbits(out, le64_to_cpu(m.btree_allocated_bitmap), 64);
+ prt_newline(out);
+
prt_printf(out, "Durability:\t%llu\n", BCH_MEMBER_DURABILITY(&m) ? BCH_MEMBER_DURABILITY(&m) - 1 : 1);
prt_printf(out, "Discard:\t%llu\n", BCH_MEMBER_DISCARD(&m));