diff options
author | David Sterba <dsterba@suse.com> | 2016-09-13 11:58:21 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-10-03 11:33:15 +0200 |
commit | 555743075b5cc924021dd1e1a4a4697ee91441d8 (patch) | |
tree | 42ed0d0db2e550ed10dcc0268c6f9624288987c7 /random-test.c | |
parent | ea84d54121c228d0526404a97ac0cdd197f46ccb (diff) |
btrfs-progs: cleanup, kill trivial btrfs_set_key_type helper
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'random-test.c')
-rw-r--r-- | random-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |