Commit 9dc2f9cd authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Dan Williams

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDan Williams <dan.j.williams@intel.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20211129102203.2243509-13-hch@lst.deSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 2a68553e
...@@ -728,7 +728,7 @@ static int copy_cow_page_dax(struct block_device *bdev, struct dax_device *dax_d ...@@ -728,7 +728,7 @@ static int copy_cow_page_dax(struct block_device *bdev, struct dax_device *dax_d
return rc; return rc;
} }
vto = kmap_atomic(to); vto = kmap_atomic(to);
copy_user_page(vto, (void __force *)kaddr, vaddr, to); copy_user_page(vto, kaddr, vaddr, to);
kunmap_atomic(vto); kunmap_atomic(vto);
dax_read_unlock(id); dax_read_unlock(id);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment