mm, debug_pagealloc: use a page type instead of page_ext flag
When debug_pagealloc is enabled, we currently allocate the page_ext array to mark guard pages with the PAGE_EXT_DEBUG_GUARD flag. Now that we have the page_type field in struct page, we can use that instead, as guard pages are neither PageSlab nor mapped to userspace. This reduces memory overhead when debug_pagealloc is enabled and there are no other features requiring the page_ext array. Link: http://lkml.kernel.org/r/20190603143451.27353-4-vbabka@suse.cz Signed-off-by:Vlastimil Babka <vbabka@suse.cz> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Michal Hocko <mhocko@kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- Documentation/admin-guide/kernel-parameters.txt 4 additions, 6 deletionsDocumentation/admin-guide/kernel-parameters.txt
- include/linux/mm.h 1 addition, 9 deletionsinclude/linux/mm.h
- include/linux/page-flags.h 6 additions, 0 deletionsinclude/linux/page-flags.h
- include/linux/page_ext.h 0 additions, 1 deletioninclude/linux/page_ext.h
- mm/Kconfig.debug 0 additions, 1 deletionmm/Kconfig.debug
- mm/page_alloc.c 6 additions, 34 deletionsmm/page_alloc.c
- mm/page_ext.c 0 additions, 3 deletionsmm/page_ext.c
Loading
Please register or sign in to comment