]> git.baikalelectronics.ru Git - kernel.git/commit
affs: use memcpy_to_page and remove replace kmap_atomic()
authorDavid Sterba <dsterba@suse.com>
Tue, 12 Jul 2022 21:30:05 +0000 (23:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Aug 2022 17:53:31 +0000 (19:53 +0200)
commitb133201df34e8e1696f4fec6b3f9d35356713f6b
treef8a3cb1950ed9e855420ffbb31a7c59fe6849e13
parent0c8b98e40f9d61a6792a879de085b19667a1f51b
affs: use memcpy_to_page and remove replace kmap_atomic()

The use of kmap() is being deprecated in favor of kmap_local_page()
where it is feasible. For kmap around a memcpy there's a convenience
helper memcpy_to_page that also makes the flush_dcache_page() redundant.

CC: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/affs/file.c