Commit a826e422420b461a6247137c292ff83c4800354a

Authored by Andrea Arcangeli
Committed by Linus Torvalds
1 parent 1c9bf22c09

thp: mm: define MADV_HUGEPAGE

Define MADV_HUGEPAGE.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 5 changed files with 10 additions and 0 deletions Side-by-side Diff

arch/alpha/include/asm/mman.h
... ... @@ -53,6 +53,8 @@
53 53 #define MADV_MERGEABLE 12 /* KSM may merge identical pages */
54 54 #define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */
55 55  
  56 +#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
  57 +
56 58 /* compatibility flags */
57 59 #define MAP_FILE 0
58 60  
arch/mips/include/asm/mman.h
... ... @@ -77,6 +77,8 @@
77 77 #define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */
78 78 #define MADV_HWPOISON 100 /* poison a page for testing */
79 79  
  80 +#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
  81 +
80 82 /* compatibility flags */
81 83 #define MAP_FILE 0
82 84  
arch/parisc/include/asm/mman.h
... ... @@ -59,6 +59,8 @@
59 59 #define MADV_MERGEABLE 65 /* KSM may merge identical pages */
60 60 #define MADV_UNMERGEABLE 66 /* KSM may not merge identical pages */
61 61  
  62 +#define MADV_HUGEPAGE 67 /* Worth backing with hugepages */
  63 +
62 64 /* compatibility flags */
63 65 #define MAP_FILE 0
64 66 #define MAP_VARIABLE 0
arch/xtensa/include/asm/mman.h
... ... @@ -83,6 +83,8 @@
83 83 #define MADV_MERGEABLE 12 /* KSM may merge identical pages */
84 84 #define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */
85 85  
  86 +#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
  87 +
86 88 /* compatibility flags */
87 89 #define MAP_FILE 0
88 90  
include/asm-generic/mman-common.h
... ... @@ -45,6 +45,8 @@
45 45 #define MADV_MERGEABLE 12 /* KSM may merge identical pages */
46 46 #define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */
47 47  
  48 +#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
  49 +
48 50 /* compatibility flags */
49 51 #define MAP_FILE 0
50 52