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 /mkfs.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 'mkfs.c')
-rw-r--r-- | mkfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -415,7 +415,7 @@ static int add_directory_items(struct btrfs_trans_handle *trans, location.objectid = objectid; location.offset = 0; - btrfs_set_key_type(&location, BTRFS_INODE_ITEM_KEY); + location.type = BTRFS_INODE_ITEM_KEY; if (S_ISDIR(st->st_mode)) filetype = BTRFS_FT_DIR; @@ -554,7 +554,7 @@ static int add_inode_items(struct btrfs_trans_handle *trans, inode_key.objectid = objectid; inode_key.offset = 0; - btrfs_set_key_type(&inode_key, BTRFS_INODE_ITEM_KEY); + inode_key.type = BTRFS_INODE_ITEM_KEY; ret = btrfs_insert_inode(trans, root, objectid, &btrfs_inode); @@ -835,7 +835,7 @@ static int traverse_directory(struct btrfs_trans_handle *trans, root_dir_key.objectid = btrfs_root_dirid(&root->root_item); root_dir_key.offset = 0; - btrfs_set_key_type(&root_dir_key, BTRFS_INODE_ITEM_KEY); + root_dir_key.type = BTRFS_INODE_ITEM_KEY; ret = btrfs_lookup_inode(trans, root, &path, &root_dir_key, 1); if (ret) { error("failed to lookup root dir: %d", ret); |