summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dir-item.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 14:49:12 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:50 +0200
commit78ac4f9e5ae022bd183ca21da7b373d300b7be17 (patch)
treeba0f57efada2514c0b45eb537ea1f9b143440475 /fs/btrfs/dir-item.c
parentbtrfs: remove unused parameter fs_info from split_item (diff)
downloadlinux-78ac4f9e5ae022bd183ca21da7b373d300b7be17.tar.xz
linux-78ac4f9e5ae022bd183ca21da7b373d300b7be17.zip
btrfs: remove unused parameter fs_info from btrfs_truncate_item
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dir-item.c')
-rw-r--r--fs/btrfs/dir-item.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c
index 8de74d835dba..2120b61f61b8 100644
--- a/fs/btrfs/dir-item.c
+++ b/fs/btrfs/dir-item.c
@@ -429,8 +429,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(root->fs_info, path,
- item_len - sub_item_len, 1);
+ btrfs_truncate_item(path, item_len - sub_item_len, 1);
}
return ret;
}