mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
btrfs: remove btrfs_read_fs_root, not used anymore
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>
This commit is contained in:
parent
3dbf1738a1
commit
83db2aadb3
2 changed files with 1 additions and 14 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue