mm, oom: do not check 0 mask in out_of_memory()
authorHaifeng Xu <haifeng.xu@shopee.com>
Mon, 8 May 2023 07:35:38 +0000 (07:35 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Jun 2023 23:25:20 +0000 (16:25 -0700)
commit4822acb1369637938c1252d534d3356c5e313cde
treee45734fd9773828ef540cf9fdac7e8ccfd37dcc3
parent97de10a9932c363a4e4ee9bb5f2297e254fb1413
mm, oom: do not check 0 mask in out_of_memory()

Since commit 60e2793d440a ("mm, oom: do not trigger out_of_memory from the
#PF"), no user sets gfp_mask to 0.  Remove the 0 mask check and update the
comments.

Link: https://lkml.kernel.org/r/20230508073538.1168-1-haifeng.xu@shopee.com
Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/oom_kill.c