aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/print-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r--fs/btrfs/print-tree.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c
index ee0de112cf5a..e99f3249d05a 100644
--- a/fs/btrfs/print-tree.c
+++ b/fs/btrfs/print-tree.c
@@ -24,7 +24,8 @@ static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk)
24{ 24{
25 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); 25 int num_stripes = btrfs_chunk_num_stripes(eb, chunk);
26 int i; 26 int i;
27 printk("\t\tchunk owner %llu type %llu num_stripes %d\n", 27 printk("\t\tchunk length %llu owner %llu type %llu num_stripes %d\n",
28 (unsigned long long)btrfs_chunk_length(eb, chunk),
28 (unsigned long long)btrfs_chunk_owner(eb, chunk), 29 (unsigned long long)btrfs_chunk_owner(eb, chunk),
29 (unsigned long long)btrfs_chunk_type(eb, chunk), 30 (unsigned long long)btrfs_chunk_type(eb, chunk),
30 num_stripes); 31 num_stripes);
@@ -140,17 +141,24 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l)
140 case BTRFS_DEV_EXTENT_KEY: 141 case BTRFS_DEV_EXTENT_KEY:
141 dev_extent = btrfs_item_ptr(l, i, 142 dev_extent = btrfs_item_ptr(l, i,
142 struct btrfs_dev_extent); 143 struct btrfs_dev_extent);
143 printk("\t\tdev extent owner %llu length %llu\n", 144 printk("\t\tdev extent chunk_tree %llu\n"
144 (unsigned long long)btrfs_dev_extent_owner(l, dev_extent), 145 "\t\tchunk objectid %llu chunk offset %llu "
145 (unsigned long long)btrfs_dev_extent_length(l, dev_extent)); 146 "length %llu\n",
147 (unsigned long long)
148 btrfs_dev_extent_chunk_tree(l, dev_extent),
149 (unsigned long long)
150 btrfs_dev_extent_chunk_objectid(l, dev_extent),
151 (unsigned long long)
152 btrfs_dev_extent_chunk_offset(l, dev_extent),
153 (unsigned long long)
154 btrfs_dev_extent_length(l, dev_extent));
146 }; 155 };
147 } 156 }
148} 157}
149 158
150void btrfs_print_tree(struct btrfs_root *root, struct extent_buffer *c) 159void btrfs_print_tree(struct btrfs_root *root, struct extent_buffer *c)
151{ 160{
152 int i; 161 int i; u32 nr;
153 u32 nr;
154 struct btrfs_key key; 162 struct btrfs_key key;
155 int level; 163 int level;
156 164