diff options
author | Christoph Hellwig <hch@lst.de> | 2021-11-29 11:21:46 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-12-04 08:58:52 -0800 |
commit | 9dc2f9cdc63e7db82b6b2ec17894ca1b254f5e5d (patch) | |
tree | 62e26f0786fe4049cb80e3df9aca4ae85987ca11 /fs/dax.c | |
parent | 2a68553e8aeb3e88cb0b1042233613a3d08a700a (diff) | |
download | linux-next-9dc2f9cdc63e7db82b6b2ec17894ca1b254f5e5d.tar.gz |
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>
Diffstat (limited to 'fs/dax.c')
-rw-r--r-- | fs/dax.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |