Ira Weiny
78b6d91ec7
arch/kmap_atomic: consolidate duplicate code
...
Every arch has the same code to ensure atomic operations and a check for
!HIGHMEM page.
Remove the duplicate code by defining a core kmap_atomic() which only
calls the arch specific kmap_atomic_high() when the page is high memory.
[akpm@linux-foundation.org: coding style fixes]
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Christian König <christian.koenig@amd.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Helge Deller <deller@gmx.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20200507150004.1423069-7-ira.weiny@intel.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2020-06-04 19:06:22 -07:00
..
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:35 -07:00
2020-03-19 13:12:27 +01:00
2020-04-19 16:08:29 +02:00
2020-04-19 16:08:29 +02:00
2020-04-19 16:09:44 +02:00
2019-07-25 22:10:05 -07:00
2020-05-27 12:50:15 +02:00
2020-04-19 16:09:44 +02:00
2019-08-06 14:29:30 -07:00
2019-05-21 11:28:39 +02:00
2017-11-02 11:10:55 +01:00
2019-09-03 14:20:54 +01:00
2020-06-03 13:32:21 -07:00
2019-10-09 14:55:57 -07:00
2020-05-15 09:10:40 +02:00
2019-07-23 14:33:44 -07:00
2020-05-24 09:28:49 +02:00
2019-07-23 14:33:44 -07:00
2020-05-12 19:34:52 +03:00
2020-04-29 23:00:07 +02:00
2020-04-19 16:08:29 +02:00
2020-04-16 17:34:23 +02:00
2019-11-11 10:44:56 -08:00
2020-05-31 10:52:42 +02:00
2020-03-19 13:12:27 +01:00
2017-07-11 14:13:06 +02:00
2016-09-13 16:45:15 +02:00
2020-03-19 13:12:27 +01:00
2020-03-19 13:12:27 +01:00
2019-05-24 17:36:45 +02:00
2020-04-19 16:08:29 +02:00
2020-05-07 10:30:06 +02:00
2020-03-19 13:12:27 +01:00
2019-07-23 14:33:44 -07:00
2020-04-19 16:09:44 +02:00
2020-04-19 16:09:44 +02:00
2020-03-19 13:12:27 +01:00
2019-05-30 11:29:20 -07:00
2018-08-08 09:48:32 -07:00
2020-05-07 11:55:47 +02:00
2020-01-09 15:30:53 -08:00
2019-11-01 14:58:56 -07:00
2019-05-30 11:26:35 -07:00
2020-01-24 11:37:45 -08:00
2019-06-19 17:09:55 +02:00
2020-03-21 15:24:02 +01:00
2019-05-30 11:26:35 -07:00
2019-05-09 16:39:27 -07:00
2017-03-02 08:42:37 +01:00
2019-07-23 14:33:51 -07:00
2020-04-16 17:30:16 +02:00
2018-08-10 17:27:51 -07:00
2020-05-07 13:20:05 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-05-22 09:09:01 +02:00
2019-10-07 09:42:36 -07:00
2019-10-07 09:43:08 -07:00
2015-10-26 09:49:41 +01:00
2019-10-07 09:42:58 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-10-23 21:07:28 -07:00
2020-05-09 18:05:52 +02:00
2020-04-24 18:17:44 +02:00
2017-11-02 11:10:55 +01:00
2019-10-07 09:38:53 -07:00
2017-08-07 12:01:17 +02:00
2019-02-07 12:59:45 -08:00
2020-04-26 15:40:50 +02:00
2015-11-05 11:15:41 +01:00
2019-01-03 18:57:57 -08:00
2020-03-21 15:23:55 +01:00
2017-11-02 11:10:55 +01:00
2019-11-01 14:36:44 -07:00
2017-11-17 11:54:55 -08:00
2020-01-03 09:32:51 +01:00
2020-05-22 09:09:01 +02:00
2019-10-31 15:03:10 -07:00
2020-05-22 09:11:45 +02:00
2020-05-24 09:26:55 +02:00
2020-05-22 09:09:01 +02:00
2020-05-22 09:11:45 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2018-09-20 09:01:15 +02:00
2019-11-20 20:31:40 +01:00
2019-02-13 19:12:33 +01:00
2017-11-02 11:10:55 +01:00
2020-03-23 15:44:05 +01:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2018-11-09 10:23:19 -08:00
2020-03-19 13:09:33 +01:00
2017-11-02 11:10:55 +01:00
2019-11-22 10:51:22 -08:00
2017-08-30 00:57:29 +02:00
2020-04-24 18:17:44 +02:00
2020-05-22 09:09:01 +02:00
2020-03-27 23:58:51 -04:00
2019-05-22 18:45:52 -07:00
2020-01-13 10:55:40 -08:00
2019-05-30 11:29:20 -07:00
2020-05-22 09:09:01 +02:00
2020-06-04 19:06:22 -07:00
2017-11-02 11:10:55 +01:00
2020-06-03 20:09:46 -07:00
2020-03-25 10:56:43 +01:00
2017-11-02 11:10:55 +01:00
2020-05-30 10:58:30 +02:00
2020-04-19 16:12:31 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:32 -07:00
2017-07-11 14:13:06 +02:00
2020-01-23 10:26:16 -08:00
2018-03-09 11:22:45 +00:00
2017-11-02 11:10:55 +01:00
2018-12-06 06:56:38 -08:00
2019-04-09 16:21:30 -07:00
2020-04-02 09:35:25 -07:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:06 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-07-16 19:23:22 -07:00
2020-05-15 12:26:26 -04:00
2018-03-06 18:40:44 +01:00
2017-11-02 11:10:55 +01:00
2019-10-07 09:42:55 -07:00
2020-01-23 10:21:53 -08:00
2017-11-02 11:10:55 +01:00
2020-05-19 17:39:32 +02:00
2019-05-30 11:26:32 -07:00
2018-05-14 23:58:23 +01:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-29 19:36:53 +08:00
2016-04-03 12:32:09 +02:00
2018-11-09 10:23:19 -08:00
2017-11-02 11:10:55 +01:00
2020-05-24 09:24:49 +02:00
2019-04-08 12:00:28 +01:00
2019-02-04 10:56:41 -08:00
2019-02-04 10:56:41 -08:00
2018-11-21 19:54:59 -08:00
2020-05-22 09:10:53 +02:00
2019-05-30 11:26:32 -07:00
2020-05-07 11:55:47 +02:00
2019-08-08 15:12:07 -05:00
2019-06-19 17:09:55 +02:00
2019-11-22 10:51:22 -08:00
2019-11-22 10:51:22 -08:00
2020-04-14 12:54:43 +02:00
2020-05-17 10:39:19 +02:00
2020-06-03 20:24:15 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-03-31 08:51:45 -07:00
2019-06-19 17:09:55 +02:00
2019-07-01 17:51:40 +02:00
2019-10-31 15:03:10 -07:00
2017-11-02 11:10:55 +01:00
2018-07-17 09:40:17 -07:00
2019-10-23 21:10:34 -07:00
2019-10-09 14:55:51 -07:00
2016-08-06 09:13:11 -04:00
2018-08-01 13:20:15 -07:00
2019-05-30 11:26:32 -07:00
2019-02-19 12:46:03 -08:00
2020-04-24 18:27:51 +02:00
2020-03-05 16:47:35 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-04-08 12:00:28 +01:00
2017-11-02 11:10:55 +01:00
2020-05-22 09:09:01 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-10-09 12:48:05 -07:00
2020-05-22 09:09:01 +02:00
2020-02-15 12:44:03 -08:00
2019-08-11 21:44:30 -07:00
2019-01-03 18:57:57 -08:00
2020-01-02 16:41:16 -08:00
2019-05-30 11:26:32 -07:00
2019-04-03 10:32:54 +02:00
2018-08-10 17:27:53 -07:00
2019-02-04 10:56:24 -08:00
2017-11-02 11:10:55 +01:00
2017-08-30 00:57:26 +02:00
2019-05-30 11:26:32 -07:00
2019-03-04 10:50:14 -08:00
2019-03-19 15:26:06 -07:00
2020-05-30 10:58:30 +02:00
2019-10-02 14:06:41 -07:00
2019-10-10 14:01:47 -07:00
2016-10-07 18:46:30 -07:00
2019-07-25 21:45:05 -07:00
2020-06-03 13:32:21 -07:00
2017-11-02 11:10:55 +01:00
2019-12-10 10:12:55 +01:00
2019-07-23 14:33:44 -07:00
2016-05-09 12:00:02 +02:00
2019-05-30 11:26:32 -07:00