mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-24 12:44:17 +08:00
btrfs-progs: remove unused argument from btrfs_lookup_inode_ref
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
3b6d0d46b4
commit
029a5608c9
2
ctree.h
2
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);
|
||||
|
@ -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;
|
||||
|
2
inode.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user