mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
2a68553e8a
commit
9dc2f9cdc6
2
fs/dax.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user