From: David Sterba Date: Thu, 9 Feb 2017 16:42:02 +0000 (+0100) Subject: btrfs-progs: mkfs: remove unused arguments from add_inode_items X-Git-Tag: upstream/4.16.1~752 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9d9314e12820bef1ac502ba6618d6f5be8707df;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: mkfs: remove unused arguments from add_inode_items Signed-off-by: David Sterba --- diff --git a/mkfs/main.c b/mkfs/main.c index 363abd5..ba60cc1 100644 --- a/mkfs/main.c +++ b/mkfs/main.c @@ -544,8 +544,8 @@ static u64 calculate_dir_inode_size(const char *dirname) static int add_inode_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct stat *st, const char *name, - u64 self_objectid, ino_t parent_inum, - int dir_index_cnt, struct btrfs_inode_item *inode_ret) + u64 self_objectid, + struct btrfs_inode_item *inode_ret) { int ret; struct btrfs_inode_item btrfs_inode; @@ -904,7 +904,6 @@ static int traverse_directory(struct btrfs_trans_handle *trans, ret = add_inode_items(trans, root, &st, cur_file->d_name, cur_inum, - parent_inum, dir_index_cnt, &cur_inode); if (ret == -EEXIST) { if (st.st_nlink <= 1) {