diff options
author | Ira Weiny <[email protected]> | 2021-05-25 10:24:27 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2021-07-07 22:10:03 -0700 |
commit | 44788591c3cfb81d9315b8ee5c2076e51bfe8a39 (patch) | |
tree | 2699dcc011cf9fad9d81e19b1e823c903a27319c | |
parent | 2e29be2e491595407087ab36a5e5a159be693f7b (diff) |
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 <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dan Williams <[email protected]>
-rw-r--r-- | fs/dax.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |