projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28785f7
)
Btrfs: let btrfs_print_leaf print more about block group
author
Liu Bo
<bo.li.liu@oracle.com>
Fri, 26 May 2017 00:08:12 +0000
(18:08 -0600)
committer
David Sterba
<dsterba@suse.com>
Mon, 19 Jun 2017 16:26:00 +0000
(18:26 +0200)
This adds chunk_objectid and flags, with flags we can recognize whether
the block group is about data or metadata.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/print-tree.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/print-tree.c
b/fs/btrfs/print-tree.c
index cdafbf92ef0c69720a03dafe971770d3ab6a72dd..fcae61e175f38899e3424c13120f06f510efa90b 100644
(file)
--- a/
fs/btrfs/print-tree.c
+++ b/
fs/btrfs/print-tree.c
@@
-261,8
+261,11
@@
void btrfs_print_leaf(struct btrfs_fs_info *fs_info, struct extent_buffer *l)
case BTRFS_BLOCK_GROUP_ITEM_KEY:
bi = btrfs_item_ptr(l, i,
struct btrfs_block_group_item);
- pr_info("\t\tblock group used %llu\n",
- btrfs_disk_block_group_used(l, bi));
+ pr_info(
+ "\t\tblock group used %llu chunk_objectid %llu flags %llu\n",
+ btrfs_disk_block_group_used(l, bi),
+ btrfs_disk_block_group_chunk_objectid(l, bi),
+ btrfs_disk_block_group_flags(l, bi));
break;
case BTRFS_CHUNK_ITEM_KEY:
print_chunk(l, btrfs_item_ptr(l, i,