summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYe Liu <liuye@kylinos.cn>2026-08-13 17:38:09 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-10-06 17:39:09 -0700
commitf1dff3456c9afd90408e77f7edc2ec960e179217 (patch)
treeab4cc49631ec90225a168b31679800573cf280bc /include/linux
parent4886cec0b283ff89c87c7b92f22e328439bf7b1f (diff)
mm/oom_kill: remove unreachable __GFP_THISNODE check in constrained_alloc()
The __GFP_THISNODE check in constrained_alloc() is dead code: global OOM is never triggered with __GFP_THISNODE (blocked in __alloc_pages_may_oom before out_of_memory() is called), and memcg OOM returns CONSTRAINT_MEMCG at the top of the function before reaching this point. Remove the check, its stale comment, and update the following comment that referenced __GFP_THISNODE. Link: https://lore.kernel.org/20260813093810.573302-1-ye.liu@linux.dev Signed-off-by: Ye Liu <liuye@kylinos.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Michal Hocko <mhocko@suse.com> Acked-by: Shakeel Butt <shakeel.butt@linux.dev> Cc: David Rientjes <rientjes@google.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions