From 7999deb007927fbc5e89c5c27f796e53ff91b60c Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Fri, 17 Mar 2023 08:00:34 +0000 Subject: [PATCH] mm/oom_kill.c: fix oom_cpuset_eligible() comment mainline inclusion from mainline-v5.4-rc1 commit f364f06b34b55285df7b132b4e3752d820412ad4 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6E9D3 CVE: NA -------------------------------- Commit ac311a14c682 ("oom: decouple mems_allowed from oom_unkillable_task") changed has_intersects_mems_allowed() to oom_cpuset_eligible(), but didn't change the comment. Link: http://lkml.kernel.org/r/1566959929-10638-1-git-send-email-wang.yi59@zte.com.cn Signed-off-by: Yi Wang Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ma Wupeng Reviewed-by: Weilong Chen Reviewed-by: Nanyong Sun Reviewed-by: Kefeng Wang Signed-off-by: Yongqiang Liu --- mm/oom_kill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 549f3e6ddb25..bcd08df6d577 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -78,7 +78,7 @@ static inline bool is_memcg_oom(struct oom_control *oc) /** * oom_cpuset_eligible() - check task eligiblity for kill * @start: task struct of which task to consider - * @mask: nodemask passed to page allocator for mempolicy ooms + * @oc: pointer to struct oom_control * * Task eligibility is determined by whether or not a candidate task, @tsk, * shares the same mempolicy nodes as current if it is bound by such a policy -- GitLab