mm/debug-pagealloc: make debug-pagealloc boottime configurable
Now, we have prepared to avoid using debug-pagealloc in boottime. So introduce new kernel-parameter to disable debug-pagealloc in boottime, and makes related functions to be disabled in this case. Only non-intuitive part is change of guard page functions. Because guard page is effective only if debug-pagealloc is enabled, turning off according to debug-pagealloc is reasonable thing to do. Signed-off-by:Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Minchan Kim <minchan@kernel.org> Cc: Dave Hansen <dave@sr71.net> Cc: Michal Nazarewicz <mina86@mina86.com> Cc: Jungsoo Son <jungsoo.son@lge.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- Documentation/kernel-parameters.txt 9 additions, 0 deletionsDocumentation/kernel-parameters.txt
- arch/powerpc/mm/hash_utils_64.c 1 addition, 1 deletionarch/powerpc/mm/hash_utils_64.c
- arch/powerpc/mm/pgtable_32.c 1 addition, 1 deletionarch/powerpc/mm/pgtable_32.c
- arch/s390/mm/pageattr.c 1 addition, 1 deletionarch/s390/mm/pageattr.c
- arch/sparc/mm/init_64.c 1 addition, 1 deletionarch/sparc/mm/init_64.c
- arch/x86/mm/pageattr.c 1 addition, 1 deletionarch/x86/mm/pageattr.c
- include/linux/mm.h 16 additions, 1 deletioninclude/linux/mm.h
- mm/debug-pagealloc.c 7 additions, 1 deletionmm/debug-pagealloc.c
- mm/page_alloc.c 20 additions, 0 deletionsmm/page_alloc.c
Loading
Please register or sign in to comment