btrfs-progs: remove unused function btrfs_get_path_rootid
Last user replaced with a more appropriate helper. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f2744dbc93
commit
3fe243296d
2 changed files with 0 additions and 17 deletions
16
qgroup.c
16
qgroup.c
|
@ -1209,22 +1209,6 @@ int btrfs_show_qgroups(int fd,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 btrfs_get_path_rootid(int fd)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
struct btrfs_ioctl_ino_lookup_args args;
|
|
||||||
|
|
||||||
memset(&args, 0, sizeof(args));
|
|
||||||
args.objectid = BTRFS_FIRST_FREE_OBJECTID;
|
|
||||||
|
|
||||||
ret = ioctl(fd, BTRFS_IOC_INO_LOOKUP, &args);
|
|
||||||
if (ret < 0) {
|
|
||||||
error("cannot perform the search: %s", strerror(errno));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
return args.treeid;
|
|
||||||
}
|
|
||||||
|
|
||||||
int btrfs_qgroup_parse_sort_string(const char *opt_arg,
|
int btrfs_qgroup_parse_sort_string(const char *opt_arg,
|
||||||
struct btrfs_qgroup_comparer_set **comps)
|
struct btrfs_qgroup_comparer_set **comps)
|
||||||
{
|
{
|
||||||
|
|
1
qgroup.h
1
qgroup.h
|
@ -79,7 +79,6 @@ enum btrfs_qgroup_filter_enum {
|
||||||
|
|
||||||
int btrfs_qgroup_parse_sort_string(const char *opt_arg,
|
int btrfs_qgroup_parse_sort_string(const char *opt_arg,
|
||||||
struct btrfs_qgroup_comparer_set **comps);
|
struct btrfs_qgroup_comparer_set **comps);
|
||||||
u64 btrfs_get_path_rootid(int fd);
|
|
||||||
int btrfs_show_qgroups(int fd, struct btrfs_qgroup_filter_set *,
|
int btrfs_show_qgroups(int fd, struct btrfs_qgroup_filter_set *,
|
||||||
struct btrfs_qgroup_comparer_set *);
|
struct btrfs_qgroup_comparer_set *);
|
||||||
void btrfs_qgroup_setup_print_column(enum btrfs_qgroup_column_enum column);
|
void btrfs_qgroup_setup_print_column(enum btrfs_qgroup_column_enum column);
|
||||||
|
|
Loading…
Reference in a new issue