summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/print-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-03-24 15:02:07 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commit0d81ba5dbedef0c3970d6aa318aa84920943e6e3 (patch)
tree2c5256b4a4e4d544add986e654db56e660f4fb12 /fs/btrfs/print-tree.c
parente085def2c4cc2d7c0c316376b4b66b86b10e3a4b (diff)
downloadlinux-0d81ba5dbedef0c3970d6aa318aa84920943e6e3.tar.gz
linux-0d81ba5dbedef0c3970d6aa318aa84920943e6e3.tar.bz2
linux-0d81ba5dbedef0c3970d6aa318aa84920943e6e3.zip
Btrfs: Move device information into the super block so it can be scanned
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r--fs/btrfs/print-tree.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c
index 9c1335dad40c..ee0de112cf5a 100644
--- a/fs/btrfs/print-tree.c
+++ b/fs/btrfs/print-tree.c
@@ -37,22 +37,11 @@ static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk)
static void print_dev_item(struct extent_buffer *eb,
struct btrfs_dev_item *dev_item)
{
- char *name;
- int name_len;
-
- name_len = btrfs_device_name_len(eb, dev_item);
- name = kmalloc(name_len, GFP_NOFS);
- if (name) {
- read_extent_buffer(eb, name,
- (unsigned long)btrfs_device_name(dev_item),
- name_len);
- }
- printk("\t\tdev item name %.*s devid %llu "
- "total_bytes %llu bytes used %Lu\n", name_len, name,
+ printk("\t\tdev item devid %llu "
+ "total_bytes %llu bytes used %Lu\n",
(unsigned long long)btrfs_device_id(eb, dev_item),
(unsigned long long)btrfs_device_total_bytes(eb, dev_item),
(unsigned long long)btrfs_device_bytes_used(eb, dev_item));
- kfree(name);
}
void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l)
{