forked from Mirrors/btrfs-progs
btrfs-progs: mkfs: remove unused arguments from add_inode_items
Signed-off-by: David Sterba <dsterba@suse.com>master
parent
b72df6551b
commit
d9d9314e12
|
@ -544,8 +544,8 @@ static u64 calculate_dir_inode_size(const char *dirname)
|
||||||
static int add_inode_items(struct btrfs_trans_handle *trans,
|
static int add_inode_items(struct btrfs_trans_handle *trans,
|
||||||
struct btrfs_root *root,
|
struct btrfs_root *root,
|
||||||
struct stat *st, const char *name,
|
struct stat *st, const char *name,
|
||||||
u64 self_objectid, ino_t parent_inum,
|
u64 self_objectid,
|
||||||
int dir_index_cnt, struct btrfs_inode_item *inode_ret)
|
struct btrfs_inode_item *inode_ret)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct btrfs_inode_item btrfs_inode;
|
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,
|
ret = add_inode_items(trans, root, &st,
|
||||||
cur_file->d_name, cur_inum,
|
cur_file->d_name, cur_inum,
|
||||||
parent_inum, dir_index_cnt,
|
|
||||||
&cur_inode);
|
&cur_inode);
|
||||||
if (ret == -EEXIST) {
|
if (ret == -EEXIST) {
|
||||||
if (st.st_nlink <= 1) {
|
if (st.st_nlink <= 1) {
|
||||||
|
|
Loading…
Reference in New Issue