summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-09 17:42:02 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:47 +0100
commit029a5608c949d360a410b0770f97c38a58f9763b (patch)
tree23f7c17b109448b9e3e3f906f96b80d2e5d76164
parent3b6d0d46b4e0161de4f2e9aecc7dc601c149d343 (diff)
btrfs-progs: remove unused argument from btrfs_lookup_inode_ref
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--ctree.h2
-rw-r--r--inode-item.c2
-rw-r--r--inode.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/ctree.h b/ctree.h
index f241a5e3..1d0622d9 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2713,7 +2713,7 @@ int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans,
struct btrfs_inode_ref *btrfs_lookup_inode_ref(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct btrfs_path *path,
const char *name, int namelen, u64 ino, u64 parent_ino,
- u64 index, int ins_len);
+ int ins_len);
int btrfs_del_inode_ref(struct btrfs_trans_handle *trans,
struct btrfs_root *root, const char *name, int name_len,
u64 ino, u64 parent_ino, u64 *index);
diff --git a/inode-item.c b/inode-item.c
index 4c7ceac4..1cc10667 100644
--- a/inode-item.c
+++ b/inode-item.c
@@ -160,7 +160,7 @@ int btrfs_insert_inode(struct btrfs_trans_handle *trans, struct btrfs_root
struct btrfs_inode_ref *btrfs_lookup_inode_ref(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct btrfs_path *path,
const char *name, int namelen, u64 ino, u64 parent_ino,
- u64 index, int ins_len)
+ int ins_len)
{
struct btrfs_key key;
struct btrfs_inode_ref *ret_inode_ref = NULL;
diff --git a/inode.c b/inode.c
index 991b8ddb..6b8bf40f 100644
--- a/inode.c
+++ b/inode.c
@@ -286,7 +286,7 @@ int btrfs_unlink(struct btrfs_trans_handle *trans, struct btrfs_root *root,
/* check the ref and backref exists */
inode_ref = btrfs_lookup_inode_ref(trans, root, path, name, namelen,
- ino, parent_ino, index, 0);
+ ino, parent_ino, 0);
if (IS_ERR(inode_ref)) {
ret = PTR_ERR(inode_ref);
goto out;