diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-26 16:46:15 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-26 16:46:15 -0400 |
commit | 9078a3e1e4e489dddc636c7bb8780349d4298743 (patch) | |
tree | 98597a438d60fc8722c7562b79cecaa303b4721d /fs/btrfs/print-tree.c | |
parent | f2458e1d8c90958ed3631654cb7fd5ab01478505 (diff) |
Btrfs: start of block group code
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 1e7038b070ae..2f95fc67a036 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c | |||
@@ -11,6 +11,7 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l) | |||
11 | struct btrfs_root_item *ri; | 11 | struct btrfs_root_item *ri; |
12 | struct btrfs_dir_item *di; | 12 | struct btrfs_dir_item *di; |
13 | struct btrfs_inode_item *ii; | 13 | struct btrfs_inode_item *ii; |
14 | struct btrfs_block_group_item *bi; | ||
14 | u32 type; | 15 | u32 type; |
15 | 16 | ||
16 | printk("leaf %Lu total ptrs %d free space %d\n", | 17 | printk("leaf %Lu total ptrs %d free space %d\n", |
@@ -53,6 +54,12 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l) | |||
53 | printk("\t\textent data refs %u\n", | 54 | printk("\t\textent data refs %u\n", |
54 | btrfs_extent_refs(ei)); | 55 | btrfs_extent_refs(ei)); |
55 | break; | 56 | break; |
57 | case BTRFS_BLOCK_GROUP_ITEM_KEY: | ||
58 | bi = btrfs_item_ptr(l, i, | ||
59 | struct btrfs_block_group_item); | ||
60 | printk("\t\tblock group used %Lu\n", | ||
61 | btrfs_block_group_used(bi)); | ||
62 | break; | ||
56 | case BTRFS_STRING_ITEM_KEY: | 63 | case BTRFS_STRING_ITEM_KEY: |
57 | printk("\t\titem data %.*s\n", btrfs_item_size(item), | 64 | printk("\t\titem data %.*s\n", btrfs_item_size(item), |
58 | btrfs_leaf_data(l) + btrfs_item_offset(item)); | 65 | btrfs_leaf_data(l) + btrfs_item_offset(item)); |