diff options
author | David Sterba <dsterba@suse.com> | 2017-02-09 17:42:02 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:48 +0100 |
commit | b8888cb17659047c5964785d11ef0a1374ed4447 (patch) | |
tree | f1deed54e49dc7b6af3f7b0077f31c7014fadca9 | |
parent | aac75c603c8a22e9aeb1f0c1a2aae25c97d02940 (diff) |
btrfs-progs: mkfs: remove unused argument from add_file_items
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | mkfs/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mkfs/main.c b/mkfs/main.c index ba60cc1b..61f746b3 100644 --- a/mkfs/main.c +++ b/mkfs/main.c @@ -645,8 +645,7 @@ fail: static int add_file_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_inode_item *btrfs_inode, u64 objectid, - ino_t parent_inum, struct stat *st, - const char *path_name, int out_fd) + struct stat *st, const char *path_name) { int ret = -1; ssize_t ret_read; @@ -943,8 +942,8 @@ static int traverse_directory(struct btrfs_trans_handle *trans, list_add_tail(&dir_entry->list, &dir_head->list); } else if (S_ISREG(st.st_mode)) { ret = add_file_items(trans, root, &cur_inode, - cur_inum, parent_inum, &st, - cur_file->d_name, out_fd); + cur_inum, &st, + cur_file->d_name); if (ret) { error("unable to add file items for %s: %d", cur_file->d_name, ret); |