diff options
author | David Sterba <dsterba@suse.com> | 2016-01-25 18:44:13 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-11 16:15:43 +0100 |
commit | 585a3d0d238dfe42909cb58b0d05f644365fed14 (patch) | |
tree | 1ed495efcb1eac960d02ebb56db5f558fd741a81 /fs/btrfs/print-tree.c | |
parent | btrfs: switch dev stats item to the permanent item key (diff) | |
download | linux-585a3d0d238dfe42909cb58b0d05f644365fed14.tar.xz linux-585a3d0d238dfe42909cb58b0d05f644365fed14.zip |
btrfs: teach print_leaf about permanent item subtypes
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 647ab12fdf5d..7bd0bdfc9812 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c @@ -295,8 +295,16 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) btrfs_dev_extent_chunk_offset(l, dev_extent), btrfs_dev_extent_length(l, dev_extent)); break; - case BTRFS_DEV_STATS_KEY: - printk(KERN_INFO "\t\tdevice stats\n"); + case BTRFS_PERSISTENT_ITEM_KEY: + printk(KERN_INFO "\t\tpersistent item objectid %llu offset %llu\n", + key.objectid, key.offset); + switch (key.objectid) { + case BTRFS_DEV_STATS_OBJECTID: + printk(KERN_INFO "\t\tdevice stats\n"); + break; + default: + printk(KERN_INFO "\t\tunknown persistent item\n"); + } break; case BTRFS_DEV_REPLACE_KEY: printk(KERN_INFO "\t\tdev replace\n"); |