summaryrefslogtreecommitdiffstats
path: root/fs/dax.c
diff options
context:
space:
mode:
authorIra Weiny <ira.weiny@intel.com>2021-05-25 19:24:27 +0200
committerDan Williams <dan.j.williams@intel.com>2021-07-08 07:10:03 +0200
commit44788591c3cfb81d9315b8ee5c2076e51bfe8a39 (patch)
tree2699dcc011cf9fad9d81e19b1e823c903a27319c /fs/dax.c
parentfs/fuse: Remove unneeded kaddr parameter (diff)
downloadlinux-44788591c3cfb81d9315b8ee5c2076e51bfe8a39.tar.xz
linux-44788591c3cfb81d9315b8ee5c2076e51bfe8a39.zip
fs/dax: Clarify nr_pages to dax_direct_access()
dax_direct_access() takes a number of pages. PHYS_PFN(PAGE_SIZE) is a very round about way to specify '1'. Change the nr_pages parameter to the explicit value of '1'. Reviewed-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Link: https://lore.kernel.org/r/20210525172428.3634316-3-ira.weiny@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/dax.c')
-rw-r--r--fs/dax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dax.c b/fs/dax.c
index 62352cbcf0f4..8ce3a7e147a8 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -721,7 +721,7 @@ static int copy_cow_page_dax(struct block_device *bdev, struct dax_device *dax_d
return rc;
id = dax_read_lock();
- rc = dax_direct_access(dax_dev, pgoff, PHYS_PFN(PAGE_SIZE), &kaddr, NULL);
+ rc = dax_direct_access(dax_dev, pgoff, 1, &kaddr, NULL);
if (rc < 0) {
dax_read_unlock(id);
return rc;