From: Ira Weiny <ira.weiny@xxxxxxxxx> Remove kmap/memcpy/kunmap pattern in favor of the new memcpy_to_page() Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx> Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx> --- fs/freevxfs/vxfs_immed.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fs/freevxfs/vxfs_immed.c b/fs/freevxfs/vxfs_immed.c index bfc780c682fb..d185fa67b82f 100644 --- a/fs/freevxfs/vxfs_immed.c +++ b/fs/freevxfs/vxfs_immed.c @@ -67,12 +67,8 @@ vxfs_immed_readpage(struct file *fp, struct page *pp) { struct vxfs_inode_info *vip = VXFS_INO(pp->mapping->host); u_int64_t offset = (u_int64_t)pp->index << PAGE_SHIFT; - caddr_t kaddr; - kaddr = kmap(pp); - memcpy(kaddr, vip->vii_immed.vi_immed + offset, PAGE_SIZE); - kunmap(pp); - + memcpy_to_page(pp, 0, vip->vii_immed.vi_immed + offset, PAGE_SIZE); flush_dcache_page(pp); SetPageUptodate(pp); unlock_page(pp); -- 2.28.0.rc0.12.gb6a658bd00c9