diff options
author | Josef Bacik <josef@toxicpanda.com> | 2020-01-24 15:32:24 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-03-23 17:01:26 +0100 |
commit | 3619c94f073e4e96bef4cc15e70adbc36f3cb203 (patch) | |
tree | d12273ae4c2cb265182f75c3608bc7d83bbafa93 /fs/btrfs/volumes.c | |
parent | btrfs: remove btrfs_read_fs_root, not used anymore (diff) | |
download | linux-3619c94f073e4e96bef4cc15e70adbc36f3cb203.tar.xz linux-3619c94f073e4e96bef4cc15e70adbc36f3cb203.zip |
btrfs: open code btrfs_read_fs_root_no_name
All this does is call btrfs_get_fs_root() with check_ref == true. Just
use btrfs_get_fs_root() so we don't have a bunch of different helpers
that do the same thing.
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>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 9cfc668f91f4..0b3167bd9f35 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -4424,7 +4424,7 @@ static int btrfs_check_uuid_tree_entry(struct btrfs_fs_info *fs_info, key.objectid = subid; key.type = BTRFS_ROOT_ITEM_KEY; key.offset = (u64)-1; - subvol_root = btrfs_read_fs_root_no_name(fs_info, &key); + subvol_root = btrfs_get_fs_root(fs_info, &key, true); if (IS_ERR(subvol_root)) { ret = PTR_ERR(subvol_root); if (ret == -ENOENT) |