]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
fs/dax: Remove unused size parameter
authorIra Weiny <ira.weiny@intel.com>
Fri, 17 Jul 2020 07:20:49 +0000 (00:20 -0700)
committerVishal Verma <vishal.l.verma@intel.com>
Tue, 28 Jul 2020 17:49:29 +0000 (11:49 -0600)
commitc7fe193f1877e80e905a39e494ff53bd20c97970
treeb33fd4caad42ff9a2beaf9f7ce3c44945f510833
parent231609785cbfb341e7d6d24a74d6ab8cc518835f
fs/dax: Remove unused size parameter

Passing size to copy_user_dax implies it can copy variable sizes of data
when in fact it calls copy_user_page() which is exactly a page.

We are safe because the only caller uses PAGE_SIZE anyway so just remove
the variable for clarity.

While we are at it change copy_user_dax() to copy_cow_page_dax() to make
it clear it is a singleton helper for this one case not implementing
what dax_iomap_actor() does.

Link: https://lore.kernel.org/r/20200717072056.73134-11-ira.weiny@intel.com
Reviewed-by: Ben Widawsky <ben.widawsky@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
fs/dax.c