]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Btrfs: delete unused function
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 13 May 2013 13:53:33 +0000 (13:53 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:28 +0000 (11:29 -0400)
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/delayed-inode.c

index f26f38ccd1942bb8c27fddb05d25995c9a4e3e1b..5615eacc7e7f11eaa7501ace2bfc397250f6f29c 100644 (file)
@@ -535,20 +535,6 @@ static struct btrfs_delayed_item *__btrfs_next_delayed_item(
        return next;
 }
 
-static inline struct btrfs_root *btrfs_get_fs_root(struct btrfs_root *root,
-                                                  u64 root_id)
-{
-       struct btrfs_key root_key;
-
-       if (root->objectid == root_id)
-               return root;
-
-       root_key.objectid = root_id;
-       root_key.type = BTRFS_ROOT_ITEM_KEY;
-       root_key.offset = (u64)-1;
-       return btrfs_read_fs_root_no_name(root->fs_info, &root_key);
-}
-
 static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans,
                                               struct btrfs_root *root,
                                               struct btrfs_delayed_item *item)