btrfs: remove btrfs_read_fs_root, not used anymore
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:23 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:26 +0000 (17:01 +0100)
All helpers should either be using btrfs_get_fs_root() or
btrfs_read_tree_root().

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h

index 9807167b6208112a9d63a7b28fd6dc768964a2c5..2e92a6bc64c0be9d0763e20cbd4324dadde7fa70 100644 (file)
@@ -1437,17 +1437,6 @@ alloc_fail:
        goto out;
 }
 
-struct btrfs_root *btrfs_read_fs_root(struct btrfs_root *tree_root,
-                                     struct btrfs_key *location)
-{
-       struct btrfs_root *root;
-
-       root = btrfs_read_tree_root(tree_root, location);
-       if (IS_ERR(root))
-               return root;
-       return root;
-}
-
 int btrfs_init_fs_root(struct btrfs_root *root)
 {
        int ret;
@@ -1568,7 +1557,7 @@ again:
                return root;
        }
 
-       root = btrfs_read_fs_root(fs_info->tree_root, location);
+       root = btrfs_read_tree_root(fs_info->tree_root, location);
        if (IS_ERR(root))
                return root;
 
index 158fec0eeef277c55c413ec47cc8d29ad7b82c24..4e43bd37f9c5b1d095209fbb46dce67b8d86d513 100644 (file)
@@ -60,8 +60,6 @@ int btrfs_read_dev_one_super(struct block_device *bdev, int copy_num,
 int btrfs_commit_super(struct btrfs_fs_info *fs_info);
 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
                                        struct btrfs_key *key);
-struct btrfs_root *btrfs_read_fs_root(struct btrfs_root *tree_root,
-                                     struct btrfs_key *location);
 int btrfs_init_fs_root(struct btrfs_root *root);
 struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info,
                                        u64 root_id);