From 55eed2b059b5fc9ee60b8ebbbb984aa2142aab1b Mon Sep 17 00:00:00 2001 From: meganz009 Date: Sat, 15 Jul 2023 17:03:29 +0800 Subject: [PATCH] mm,thp: fix to get it compiled on PREEMPT_RT If the CONFIG_TRANSPARENT_HUGEPAGE is not configured, the patch below will cause compilation issues. anolis: mm, thp: introduce proactive zero subpages reclaim ANBZ: #5310 Signed-off-by: Wenya Zhang Reviewed-by: Xuexin Jiang --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 613c67a9feeb..c43e8f256446 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6757,7 +6757,6 @@ static ssize_t memcg_thp_reclaim_ctrl_write(struct kernfs_open_file *of, return nbytes; } -#endif static int thp_reclaim_proactive_memcg_init; static int __init setup_thp_reclaim_proactive_init(char *str) @@ -6786,6 +6785,7 @@ static int __init setup_thp_reclaim_proactive_init(char *str) return !ret; } __setup("tr.proactive=", setup_thp_reclaim_proactive_init); +#endif static struct cftype mem_cgroup_legacy_files[] = { { -- Gitee