]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
thp: mm: define MADV_NOHUGEPAGE
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:47:17 +0000 (15:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:47 +0000 (17:32 -0800)
Define MADV_NOHUGEPAGE.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/include/asm/mman.h
arch/mips/include/asm/mman.h
arch/parisc/include/asm/mman.h
arch/xtensa/include/asm/mman.h
include/asm-generic/mman-common.h

index f7465418a8f395f38345686de3d2a8a779e0814d..72db984f8781391e1b1775f6c50a5699651e41db 100644 (file)
@@ -54,6 +54,7 @@
 #define MADV_UNMERGEABLE 13            /* KSM may not merge identical pages */
 
 #define MADV_HUGEPAGE  14              /* Worth backing with hugepages */
+#define MADV_NOHUGEPAGE        15              /* Not worth backing with hugepages */
 
 /* compatibility flags */
 #define MAP_FILE       0
index 9d8184c527ffe07835dbd8be1e8c5544b6e3ca84..785b4ea4ec3f5b3e39bbbc88dd7d3191e76abee2 100644 (file)
@@ -78,6 +78,7 @@
 #define MADV_HWPOISON    100           /* poison a page for testing */
 
 #define MADV_HUGEPAGE  14              /* Worth backing with hugepages */
+#define MADV_NOHUGEPAGE        15              /* Not worth backing with hugepages */
 
 /* compatibility flags */
 #define MAP_FILE       0
index 533c5dc173c11d376feb830b2ac67b032b07b1d5..f5b7bf5fba6837fb053a05f5394684b9421fe537 100644 (file)
@@ -60,6 +60,7 @@
 #define MADV_UNMERGEABLE 66            /* KSM may not merge identical pages */
 
 #define MADV_HUGEPAGE  67              /* Worth backing with hugepages */
+#define MADV_NOHUGEPAGE        68              /* Not worth backing with hugepages */
 
 /* compatibility flags */
 #define MAP_FILE       0
index 41be9a1ee08f88df9c93aecc168c5c660eaca30e..30789010733d6dc045b352b63ea3363879c0503e 100644 (file)
@@ -84,6 +84,7 @@
 #define MADV_UNMERGEABLE 13            /* KSM may not merge identical pages */
 
 #define MADV_HUGEPAGE  14              /* Worth backing with hugepages */
+#define MADV_NOHUGEPAGE        15              /* Not worth backing with hugepages */
 
 /* compatibility flags */
 #define MAP_FILE       0
index e91392fde4c6b9646aac0ea3f7cfec6f2c77a901..787abbb6d8676b942c4dd1b6b36f554ded8a4eb5 100644 (file)
@@ -46,6 +46,7 @@
 #define MADV_UNMERGEABLE 13            /* KSM may not merge identical pages */
 
 #define MADV_HUGEPAGE  14              /* Worth backing with hugepages */
+#define MADV_NOHUGEPAGE        15              /* Not worth backing with hugepages */
 
 /* compatibility flags */
 #define MAP_FILE       0