Files
android_kernel_xiaomi_sm8450/include/linux
Mel Gorman c46a7c817e x86: define _PAGE_NUMA by reusing software bits on the PMD and PTE levels
_PAGE_NUMA is currently an alias of _PROT_PROTNONE to trap NUMA hinting
faults on x86.  Care is taken such that _PAGE_NUMA is used only in
situations where the VMA flags distinguish between NUMA hinting faults
and prot_none faults.  This decision was x86-specific and conceptually
it is difficult requiring special casing to distinguish between PROTNONE
and NUMA ptes based on context.

Fundamentally, we only need the _PAGE_NUMA bit to tell the difference
between an entry that is really unmapped and a page that is protected
for NUMA hinting faults as if the PTE is not present then a fault will
be trapped.

Swap PTEs on x86-64 use the bits after _PAGE_GLOBAL for the offset.
This patch shrinks the maximum possible swap size and uses the bit to
uniquely distinguish between NUMA hinting ptes and swap ptes.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Anvin <hpa@zytor.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Steven Noonan <steven@uplinklabs.net>
Cc: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-04 16:53:55 -07:00
..
2014-05-07 18:27:45 +02:00
2014-04-18 16:40:08 -07:00
2013-12-23 18:34:58 -08:00
2014-01-24 22:39:54 +01:00
2014-06-03 23:12:20 +02:00
2014-05-13 11:26:27 -04:00
2013-11-15 09:32:21 +09:00
2013-11-09 00:16:29 -05:00
2014-04-03 16:20:58 -07:00
2014-02-13 10:08:52 +05:30
2014-01-16 10:23:02 +10:30
2014-04-01 23:19:14 -04:00
2014-03-10 11:44:42 -04:00
2014-04-18 14:20:48 +02:00
2014-03-10 17:26:19 -07:00
2014-05-20 10:30:40 +09:00
2014-02-20 14:54:28 +01:00
2014-03-04 07:55:47 -08:00
2014-01-16 11:15:50 +01:00
2014-04-07 16:36:07 -07:00
2013-12-29 16:34:25 -05:00
2014-03-07 11:41:32 -05:00
2014-04-17 12:30:40 -07:00
2014-03-13 12:11:00 +10:30
2014-01-25 08:55:09 +01:00
2014-04-03 16:20:50 -07:00
2013-12-11 15:52:34 +01:00
2014-05-27 17:38:11 -07:00
2013-12-26 13:29:35 -05:00
2014-05-06 14:02:53 -04:00
2014-04-01 23:19:08 -04:00
2014-03-04 13:51:06 -05:00
2014-01-27 21:02:39 -08:00
2013-11-09 00:16:19 -05:00
2014-04-01 23:19:10 -04:00
2013-10-14 17:15:48 +02:00
2014-03-17 15:14:16 -04:00
2014-03-17 15:15:21 -04:00
2014-01-25 03:14:05 -05:00
2014-04-07 10:59:19 -07:00
2014-04-03 16:21:04 -07:00
2014-04-24 15:01:33 -06:00
2014-05-14 09:46:10 -07:00
2013-10-17 00:36:06 +02:00
2014-03-19 22:24:08 -04:00
2014-02-17 15:01:52 -08:00
2014-01-28 13:20:09 -08:00
2014-04-01 17:08:43 +02:00
2014-05-20 15:19:25 -05:00
2013-12-19 19:09:38 -05:00
2014-01-27 21:02:39 -08:00
2014-02-15 11:55:28 -08:00
2014-02-17 15:01:37 -08:00
2014-04-18 12:07:31 +02:00
2014-05-14 09:46:32 -07:00
2014-04-07 16:35:53 -07:00
2013-10-17 15:53:09 -04:00
2014-01-30 16:56:55 -08:00