summaryrefslogtreecommitdiff
path: root/dir-item.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-02 13:38:44 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:46 +0100
commit4069aa73d333ea8b6436d593a0e18fc56071b4fe (patch)
treeb9392409608a0635b15bc7e6d7209f6f43f7347c /dir-item.c
parent2c23b7b8717daaf3665fc01b2e1429d114ae4fc6 (diff)
btrfs-progs: drop unused argument from btrfs_truncate_item
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'dir-item.c')
-rw-r--r--dir-item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir-item.c b/dir-item.c
index 846fc292..29d5aad5 100644
--- a/dir-item.c
+++ b/dir-item.c
@@ -272,7 +272,7 @@ int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans,
start = btrfs_item_ptr_offset(leaf, path->slots[0]);
memmove_extent_buffer(leaf, ptr, ptr + sub_item_len,
item_len - (ptr + sub_item_len - start));
- btrfs_truncate_item(trans, root, path, item_len - sub_item_len, 1);
+ btrfs_truncate_item(root, path, item_len - sub_item_len, 1);
}
return ret;
}