From 6d90f4e19c67cbfec155fb46cc3b09d8342d80b8 Mon Sep 17 00:00:00 2001 From: lijiawei Date: Mon, 13 Dec 2021 15:17:07 +0800 Subject: [PATCH] test Signed-off-by: lijiawei --- include/linux/gfp.h | 1 + include/linux/highmem.h | 1 + include/linux/mmzone.h | 1 + mm/Kconfig | 2 +- mm/compaction.c | 1 + mm/page_alloc.c | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index c603237e006c..166bccc4f9ee 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -323,6 +323,7 @@ static inline int gfp_migratetype(const gfp_t gfp_flags) if (unlikely(page_group_by_mobility_disabled)) return MIGRATE_UNMOVABLE; + /* Group based on mobility */ return (gfp_flags & GFP_MOVABLE_MASK) >> GFP_MOVABLE_SHIFT; } diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 14e6202ce47f..d6e39fc5de0d 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h @@ -11,6 +11,7 @@ #include + #ifndef ARCH_HAS_FLUSH_ANON_PAGE static inline void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) { diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 63b550403317..222a858ea3a4 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -5,6 +5,7 @@ #ifndef __ASSEMBLY__ #ifndef __GENERATING_BOUNDS_H + #include #include #include diff --git a/mm/Kconfig b/mm/Kconfig index 9d606d258ab4..8a848837ae3b 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -524,7 +524,7 @@ config CMA_AREAS help CMA allows to create CMA areas for particular purpose, mainly, used as device private area. This parameter sets the maximum - number of CMA area in the system. + number of CMA area in the system . If unsure, leave the default value "7" in UMA and "19" in NUMA. diff --git a/mm/compaction.c b/mm/compaction.c index dba424447473..1d05435ffdfb 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -25,6 +25,7 @@ #include #include "internal.h" + #ifdef CONFIG_COMPACTION static inline void count_compact_event(enum vm_event_item item) { diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 6d189b69a9e1..4f2443821b2f 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -78,6 +78,7 @@ #include "shuffle.h" #include "page_reporting.h" + /* Free Page Internal flags: for internal, non-pcp variants of free_pages(). */ typedef int __bitwise fpi_t; -- Gitee