diff options
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index f250e5fad773..f53b99da12f3 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c | |||
@@ -14,6 +14,7 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l) | |||
14 | struct btrfs_root_item *ri; | 14 | struct btrfs_root_item *ri; |
15 | struct btrfs_dir_item *di; | 15 | struct btrfs_dir_item *di; |
16 | struct btrfs_inode_map_item *mi; | 16 | struct btrfs_inode_map_item *mi; |
17 | struct btrfs_inode_item *ii; | ||
17 | u32 type; | 18 | u32 type; |
18 | 19 | ||
19 | printf("leaf %Lu total ptrs %d free space %d\n", | 20 | printf("leaf %Lu total ptrs %d free space %d\n", |
@@ -32,6 +33,10 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l) | |||
32 | btrfs_item_size(item)); | 33 | btrfs_item_size(item)); |
33 | switch (type) { | 34 | switch (type) { |
34 | case BTRFS_INODE_ITEM_KEY: | 35 | case BTRFS_INODE_ITEM_KEY: |
36 | ii = btrfs_item_ptr(l, i, struct btrfs_inode_item); | ||
37 | printf("\t\tinode generation %Lu size %Lu\n", | ||
38 | btrfs_inode_generation(ii), | ||
39 | btrfs_inode_size(ii)); | ||
35 | break; | 40 | break; |
36 | case BTRFS_DIR_ITEM_KEY: | 41 | case BTRFS_DIR_ITEM_KEY: |
37 | di = btrfs_item_ptr(l, i, struct btrfs_dir_item); | 42 | di = btrfs_item_ptr(l, i, struct btrfs_dir_item); |