mm/highmem: Convert memcpy_[to|from]_page() to kmap_local_page()
authorIra Weiny <ira.weiny@intel.com>
Wed, 10 Feb 2021 06:22:15 +0000 (22:22 -0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Feb 2021 18:55:16 +0000 (19:55 +0100)
commit61b205f579911a11f0b576f73275eca2aed0d108
tree3bbef09f264834a8e9175d236529d3bd188f3bfb
parentbb90d4bc7b6a536b2e4db45f4763e467c2008251
mm/highmem: Convert memcpy_[to|from]_page() to kmap_local_page()

kmap_local_page() is more efficient and is well suited for these calls.
Convert the kmap() to kmap_local_page()

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: David Sterba <dsterba@suse.com>
include/linux/highmem.h