We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97de10a commit 4822acbCopy full SHA for 4822acb
mm/oom_kill.c
@@ -1130,12 +1130,10 @@ bool out_of_memory(struct oom_control *oc)
1130
1131
/*
1132
* The OOM killer does not compensate for IO-less reclaim.
1133
- * pagefault_out_of_memory lost its gfp context so we have to
1134
- * make sure exclude 0 mask - all other users should have at least
1135
- * ___GFP_DIRECT_RECLAIM to get here. But mem_cgroup_oom() has to
1136
- * invoke the OOM killer even if it is a GFP_NOFS allocation.
+ * But mem_cgroup_oom() has to invoke the OOM killer even
+ * if it is a GFP_NOFS allocation.
1137
*/
1138
- if (oc->gfp_mask && !(oc->gfp_mask & __GFP_FS) && !is_memcg_oom(oc))
+ if (!(oc->gfp_mask & __GFP_FS) && !is_memcg_oom(oc))
1139
return true;
1140
1141
0 commit comments