aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2016-01-06 05:47:31 -0500
committerChris Mason <clm@fb.com>2016-01-20 10:22:13 -0500
commitee22f0c4ec428e7f16d3c5fa1d55fd7860cb304a (patch)
treefbcda1a25e198bb6a18f4e0f001334bfe8f6af0f /fs
parentad1ba2a0c453db255f04b17101db6d05c44d8467 (diff)
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/file.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 364e0f1f61f6..af782fdd4fca 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -406,8 +406,7 @@ int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info)
406/* simple helper to fault in pages and copy. This should go away 406/* simple helper to fault in pages and copy. This should go away
407 * and be replaced with calls into generic code. 407 * and be replaced with calls into generic code.
408 */ 408 */
409static noinline int btrfs_copy_from_user(loff_t pos, int num_pages, 409static noinline int btrfs_copy_from_user(loff_t pos, size_t write_bytes,
410 size_t write_bytes,
411 struct page **prepared_pages, 410 struct page **prepared_pages,
412 struct iov_iter *i) 411 struct iov_iter *i)
413{ 412{
@@ -1588,8 +1587,7 @@ again:
1588 ret = 0; 1587 ret = 0;
1589 } 1588 }
1590 1589
1591 copied = btrfs_copy_from_user(pos, num_pages, 1590 copied = btrfs_copy_from_user(pos, write_bytes, pages, i);
1592 write_bytes, pages, i);
1593 1591
1594 /* 1592 /*
1595 * if we have trouble faulting in the pages, fall 1593 * if we have trouble faulting in the pages, fall