btrfs: delete unused argument in btrfs_copy_from_user

size_t write_bytes is not necessary for btrfs_copy_from_user(),
delete it.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
Zhao Lei 2016-01-06 18:47:31 +08:00 committed by Chris Mason
parent ad1ba2a0c4
commit ee22f0c4ec

View file

@ -406,8 +406,7 @@ int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info)
/* simple helper to fault in pages and copy. This should go away /* simple helper to fault in pages and copy. This should go away
* and be replaced with calls into generic code. * and be replaced with calls into generic code.
*/ */
static noinline int btrfs_copy_from_user(loff_t pos, int num_pages, static noinline int btrfs_copy_from_user(loff_t pos, size_t write_bytes,
size_t write_bytes,
struct page **prepared_pages, struct page **prepared_pages,
struct iov_iter *i) struct iov_iter *i)
{ {
@ -1588,8 +1587,7 @@ again:
ret = 0; ret = 0;
} }
copied = btrfs_copy_from_user(pos, num_pages, copied = btrfs_copy_from_user(pos, write_bytes, pages, i);
write_bytes, pages, i);
/* /*
* if we have trouble faulting in the pages, fall * if we have trouble faulting in the pages, fall