From 555743075b5cc924021dd1e1a4a4697ee91441d8 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 13 Sep 2016 11:58:21 +0200 Subject: btrfs-progs: cleanup, kill trivial btrfs_set_key_type helper Signed-off-by: David Sterba --- random-test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'random-test.c') diff --git a/random-test.c b/random-test.c index b7c6cdb3..410a110b 100644 --- a/random-test.c +++ b/random-test.c @@ -37,7 +37,7 @@ static int setup_key(struct radix_tree_root *root, struct btrfs_key *key, int ret; key->flags = 0; - btrfs_set_key_type(key, BTRFS_STRING_ITEM_KEY); + key->type = BTRFS_STRING_ITEM_KEY; key->offset = 0; again: ret = radix_tree_gang_lookup(root, (void **)res, num, 2); @@ -184,7 +184,7 @@ static int empty_tree(struct btrfs_trans_handle *trans, struct btrfs_root key.offset = 0; key.flags = 0; - btrfs_set_key_type(&key, BTRFS_STRING_ITEM_KEY); + key.type = BTRFS_STRING_ITEM_KEY; key.objectid = (unsigned long)-1; while(nr-- >= 0) { btrfs_init_path(&path); @@ -288,7 +288,7 @@ static int fill_radix(struct btrfs_root *root, struct radix_tree_root *radix) key.offset = 0; key.flags = 0; - btrfs_set_key_type(&key, BTRFS_STRING_ITEM_KEY); + key.type = BTRFS_STRING_ITEM_KEY; key.objectid = (unsigned long)-1; while(1) { btrfs_init_path(&path); -- cgit v1.2.3