Commit df397565 authored by Jeff Mahoney's avatar Jeff Mahoney Committed by David Sterba

btrfs: copy_to_sk drop unused root parameter

The root parameter for copy_to_sk is not used at all.
Signed-off-by: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent bd6c57dd
...@@ -1948,8 +1948,7 @@ static noinline int key_in_sk(struct btrfs_key *key, ...@@ -1948,8 +1948,7 @@ static noinline int key_in_sk(struct btrfs_key *key,
return 1; return 1;
} }
static noinline int copy_to_sk(struct btrfs_root *root, static noinline int copy_to_sk(struct btrfs_path *path,
struct btrfs_path *path,
struct btrfs_key *key, struct btrfs_key *key,
struct btrfs_ioctl_search_key *sk, struct btrfs_ioctl_search_key *sk,
size_t *buf_size, size_t *buf_size,
...@@ -2120,7 +2119,7 @@ static noinline int search_ioctl(struct inode *inode, ...@@ -2120,7 +2119,7 @@ static noinline int search_ioctl(struct inode *inode,
ret = 0; ret = 0;
goto err; goto err;
} }
ret = copy_to_sk(root, path, &key, sk, buf_size, ubuf, ret = copy_to_sk(path, &key, sk, buf_size, ubuf,
&sk_offset, &num_found); &sk_offset, &num_found);
btrfs_release_path(path); btrfs_release_path(path);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment