Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee22f0c4 authored by Zhao Lei's avatar Zhao Lei Committed by Chris Mason
Browse files

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: default avatarZhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent ad1ba2a0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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 @@ static noinline ssize_t __btrfs_buffered_write(struct file *file,
			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