mm/mglru: add CONFIG_LRU_GEN_WALKS_MMU
[linux-2.6-block.git] / kernel / fork.c
index 93924392a5c32e0cf4b481c257bd341db0588c0c..56cf276432c83a7b625e2327844dd0d36b7a4f70 100644 (file)
@@ -2946,7 +2946,7 @@ pid_t kernel_clone(struct kernel_clone_args *args)
                get_task_struct(p);
        }
 
-       if (IS_ENABLED(CONFIG_LRU_GEN) && !(clone_flags & CLONE_VM)) {
+       if (IS_ENABLED(CONFIG_LRU_GEN_WALKS_MMU) && !(clone_flags & CLONE_VM)) {
                /* lock the task to synchronize with memcg migration */
                task_lock(p);
                lru_gen_add_mm(p->mm);