highmem: Provide generic variant of kmap_atomic*
authorThomas Gleixner <tglx@linutronix.de>
Tue, 3 Nov 2020 09:27:18 +0000 (10:27 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 6 Nov 2020 22:14:54 +0000 (23:14 +0100)
commit298fa1ad5571f59cb3ca5497a9455f36867f065e
tree29c072412a6a6f6906d5a9c9c784c33e75b2e909
parent4f8b96cd47b06f1e3ec71c1a3216113efe8dbfb5
highmem: Provide generic variant of kmap_atomic*

The kmap_atomic* interfaces in all architectures are pretty much the same
except for post map operations (flush) and pre- and post unmap operations.

Provide a generic variant for that.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linuxfoundation.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/r/20201103095857.175939340@linutronix.de
include/linux/highmem.h
mm/Kconfig
mm/highmem.c