diff options
author | David Sterba <dsterba@suse.com> | 2016-10-31 12:44:29 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-09 13:47:29 +0100 |
commit | f4ea2ec9819f63b19e3cbf13ed77769de1d4718f (patch) | |
tree | 360edda6d9f67b36164d466dcec8bade4c9ac2a7 /btrfs-list.c | |
parent | 65b2f81d77c0b1ed57d6e9f033f618f7b3fe83b8 (diff) |
btrfs-progs: remove trivial helper root_lookup_init
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-list.c')
-rw-r--r-- | btrfs-list.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/btrfs-list.c b/btrfs-list.c index ae798d34..fc4215f0 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -124,11 +124,6 @@ void btrfs_list_setup_print_column(enum btrfs_list_column_enum column) btrfs_list_columns[i].need_print = 1; } -static void root_lookup_init(struct root_lookup *tree) -{ - tree->root.rb_node = NULL; -} - static int comp_entry_with_rootid(struct root_info *entry1, struct root_info *entry2, int is_descending) @@ -983,7 +978,7 @@ static int list_subvol_search(int fd, struct root_lookup *root_lookup) u64 flags; int i; - root_lookup_init(root_lookup); + root_lookup->root.rb_node = NULL; memset(&args, 0, sizeof(args)); sk->tree_id = BTRFS_ROOT_TREE_OBJECTID; @@ -1270,7 +1265,7 @@ static void filter_and_sort_subvol(struct root_lookup *all_subvols, struct root_info *entry; int ret; - root_lookup_init(sort_tree); + sort_tree->root.rb_node = NULL; n = rb_last(&all_subvols->root); while (n) { |