From: Jeff Mahoney Date: Wed, 22 Jun 2016 00:18:21 +0000 (-0400) Subject: btrfs: copy_to_sk drop unused root parameter X-Git-Tag: v5.15~12838^2~27^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df3975652f23dcfb72aa043a32ecaf587e75b158;p=platform%2Fkernel%2Flinux-starfive.git btrfs: copy_to_sk drop unused root parameter The root parameter for copy_to_sk is not used at all. Signed-off-by: Jeff Mahoney Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index ffb1628..81413e6 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1948,8 +1948,7 @@ static noinline int key_in_sk(struct btrfs_key *key, return 1; } -static noinline int copy_to_sk(struct btrfs_root *root, - struct btrfs_path *path, +static noinline int copy_to_sk(struct btrfs_path *path, struct btrfs_key *key, struct btrfs_ioctl_search_key *sk, size_t *buf_size, @@ -2120,7 +2119,7 @@ static noinline int search_ioctl(struct inode *inode, ret = 0; 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); btrfs_release_path(path); if (ret)