summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-11-29 11:21:46 +0100
committerDan Williams <dan.j.williams@intel.com>2021-12-04 08:58:52 -0800
commit9dc2f9cdc63e7db82b6b2ec17894ca1b254f5e5d (patch)
tree62e26f0786fe4049cb80e3df9aca4ae85987ca11
parent2a68553e8aeb3e88cb0b1042233613a3d08a700a (diff)
downloadlinux-stable-9dc2f9cdc63e7db82b6b2ec17894ca1b254f5e5d.tar.gz
linux-stable-9dc2f9cdc63e7db82b6b2ec17894ca1b254f5e5d.tar.bz2
linux-stable-9dc2f9cdc63e7db82b6b2ec17894ca1b254f5e5d.zip
fsdax: remove a pointless __force cast in copy_cow_page_dax
Despite its name copy_user_page expected kernel addresses, which is what we already have. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Link: https://lore.kernel.org/r/20211129102203.2243509-13-hch@lst.de Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--fs/dax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dax.c b/fs/dax.c
index 4e3e5a283a91..73bd1439d808 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -728,7 +728,7 @@ static int copy_cow_page_dax(struct block_device *bdev, struct dax_device *dax_d
return rc;
}
vto = kmap_atomic(to);
- copy_user_page(vto, (void __force *)kaddr, vaddr, to);
+ copy_user_page(vto, kaddr, vaddr, to);
kunmap_atomic(vto);
dax_read_unlock(id);
return 0;