btrfs-progs: delete unused function btrfs_read_super_device
authorAnand Jain <anand.jain@oracle.com>
Tue, 16 Apr 2013 09:28:44 +0000 (17:28 +0800)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:26 +0000 (18:56 +0200)
Signed-off-by: Anand Jain <anand.jain@oracle.com>
volumes.c

index 3e52d0648e2905c9955fdfd9aa663f644e39f82f..d6f81f87b71edae0bc87d3f598bbd3c0556507bc 100644 (file)
--- a/volumes.c
+++ b/volumes.c
@@ -1641,15 +1641,6 @@ static int read_one_dev(struct btrfs_root *root,
        return ret;
 }
 
-int btrfs_read_super_device(struct btrfs_root *root, struct extent_buffer *buf)
-{
-       struct btrfs_dev_item *dev_item;
-
-       dev_item = (struct btrfs_dev_item *)offsetof(struct btrfs_super_block,
-                                                    dev_item);
-       return read_one_dev(root, buf, dev_item);
-}
-
 int btrfs_read_sys_array(struct btrfs_root *root)
 {
        struct btrfs_super_block *super_copy = root->fs_info->super_copy;