Skip to content

Commit 9dc2f9c

Browse files
Christoph Hellwigdjbw
authored andcommitted
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 <[email protected]> Reviewed-by: Dan Williams <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 2a68553 commit 9dc2f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/dax.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ static int copy_cow_page_dax(struct block_device *bdev, struct dax_device *dax_d
728728
return rc;
729729
}
730730
vto = kmap_atomic(to);
731-
copy_user_page(vto, (void __force *)kaddr, vaddr, to);
731+
copy_user_page(vto, kaddr, vaddr, to);
732732
kunmap_atomic(vto);
733733
dax_read_unlock(id);
734734
return 0;

0 commit comments

Comments
 (0)