btrfs-progs: remove unused btrfs_list_get_path_rootid

All callers now use lookup_path_rootid.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2021-09-29 18:10:58 +02:00
parent 03650851c5
commit fbd2a3bf9c
2 changed files with 0 additions and 12 deletions

View File

@ -1942,14 +1942,3 @@ int btrfs_list_parse_filter_string(char *opt_arg,
return 0;
}
int btrfs_list_get_path_rootid(int fd, u64 *treeid)
{
int ret;
ret = lookup_path_rootid(fd, treeid);
if (ret < 0)
error("cannot resolve rootid for path: %m");
return ret;
}

View File

@ -166,7 +166,6 @@ int btrfs_list_subvols_print(int fd, struct btrfs_list_filter_set *filter_set,
int btrfs_list_find_updated_files(int fd, u64 root_id, u64 oldest_gen);
int btrfs_list_get_default_subvolume(int fd, u64 *default_id);
char *btrfs_list_path_for_root(int fd, u64 root);
int btrfs_list_get_path_rootid(int fd, u64 *treeid);
int btrfs_get_subvol(int fd, struct root_info *the_ri);
int btrfs_get_toplevel_subvol(int fd, struct root_info *the_ri);