diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2016-01-06 11:47:31 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2016-01-20 16:22:13 +0100 |
commit | ee22f0c4ec428e7f16d3c5fa1d55fd7860cb304a (patch) | |
tree | fbcda1a25e198bb6a18f4e0f001334bfe8f6af0f /fs/btrfs | |
parent | btrfs: Use direct way to determine raid56 write/recover mode (diff) | |
download | linux-ee22f0c4ec428e7f16d3c5fa1d55fd7860cb304a.tar.xz linux-ee22f0c4ec428e7f16d3c5fa1d55fd7860cb304a.zip |
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/btrfs')
-rw-r--r-- | fs/btrfs/file.c | 6 |
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) /* simple helper to fault in pages and copy. This should go away * and be replaced with calls into generic code. */ -static noinline int btrfs_copy_from_user(loff_t pos, int num_pages, - size_t write_bytes, +static noinline int btrfs_copy_from_user(loff_t pos, size_t write_bytes, struct page **prepared_pages, struct iov_iter *i) { @@ -1588,8 +1587,7 @@ again: ret = 0; } - copied = btrfs_copy_from_user(pos, num_pages, - write_bytes, pages, i); + copied = btrfs_copy_from_user(pos, write_bytes, pages, i); /* * if we have trouble faulting in the pages, fall |