fsdax: remove a pointless __force cast in copy_cow_page_dax
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:46 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:52 +0000 (08:58 -0800)
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>
fs/dax.c

index 4e3e5a2..73bd143 100644 (file)
--- 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;