diff options
author | David Sterba <dsterba@suse.com> | 2017-02-10 20:15:10 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 12:03:54 +0100 |
commit | 1a287cfea17c3c14c03151fa970baf86b9055c26 (patch) | |
tree | 7bfa482b50ddd3dc3c1b3a008834f86d102ed727 /fs | |
parent | eeac44cb498d6380d5ea947b324892afa5d89615 (diff) | |
download | linux-stable-1a287cfea17c3c14c03151fa970baf86b9055c26.tar.gz linux-stable-1a287cfea17c3c14c03151fa970baf86b9055c26.tar.bz2 linux-stable-1a287cfea17c3c14c03151fa970baf86b9055c26.zip |
btrfs: remove unused parameters from btrfs_cmp_data
After the page locking has been reworked, we get all pages prepared via
cmp_pages.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ioctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 4f360b17dfe2..9b47ecc5262e 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -3053,8 +3053,7 @@ out: return 0; } -static int btrfs_cmp_data(struct inode *src, u64 loff, struct inode *dst, - u64 dst_loff, u64 len, struct cmp_pages *cmp) +static int btrfs_cmp_data(u64 len, struct cmp_pages *cmp) { int ret = 0; int i; @@ -3221,7 +3220,7 @@ again: } /* pass original length for comparison so we stay within i_size */ - ret = btrfs_cmp_data(src, loff, dst, dst_loff, olen, &cmp); + ret = btrfs_cmp_data(olen, &cmp); if (ret == 0) ret = btrfs_clone(src, dst, loff, olen, len, dst_loff, 1); |