diff options
author | David Sterba <dsterba@suse.com> | 2016-10-31 10:29:12 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-09 13:47:28 +0100 |
commit | 3fe243296df75de895c43e9a24e9b6a773555064 (patch) | |
tree | 77f57630572151101b64a50129e0fee818a3d1c2 | |
parent | f2744dbc936b844702ae61254a0fb7470fb5b02d (diff) |
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>
-rw-r--r-- | qgroup.c | 16 | ||||
-rw-r--r-- | qgroup.h | 1 |
2 files changed, 0 insertions, 17 deletions
@@ -1209,22 +1209,6 @@ int btrfs_show_qgroups(int fd, 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, struct btrfs_qgroup_comparer_set **comps) { @@ -79,7 +79,6 @@ enum btrfs_qgroup_filter_enum { int btrfs_qgroup_parse_sort_string(const char *opt_arg, struct btrfs_qgroup_comparer_set **comps); -u64 btrfs_get_path_rootid(int fd); int btrfs_show_qgroups(int fd, struct btrfs_qgroup_filter_set *, struct btrfs_qgroup_comparer_set *); void btrfs_qgroup_setup_print_column(enum btrfs_qgroup_column_enum column); |