aboutsummaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r--mm/oom_kill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 2f37f6113d9e..c29cf00d9084 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -549,7 +549,7 @@ EXPORT_SYMBOL_GPL(unregister_oom_notifier);
549 * if a parallel OOM killing is already taking place that includes a zone in 549 * if a parallel OOM killing is already taking place that includes a zone in
550 * the zonelist. Otherwise, locks all zones in the zonelist and returns 1. 550 * the zonelist. Otherwise, locks all zones in the zonelist and returns 1.
551 */ 551 */
552int try_set_zone_oom(struct zonelist *zonelist, gfp_t gfp_mask) 552int try_set_zonelist_oom(struct zonelist *zonelist, gfp_t gfp_mask)
553{ 553{
554 struct zoneref *z; 554 struct zoneref *z;
555 struct zone *zone; 555 struct zone *zone;
@@ -566,7 +566,7 @@ int try_set_zone_oom(struct zonelist *zonelist, gfp_t gfp_mask)
566 for_each_zone_zonelist(zone, z, zonelist, gfp_zone(gfp_mask)) { 566 for_each_zone_zonelist(zone, z, zonelist, gfp_zone(gfp_mask)) {
567 /* 567 /*
568 * Lock each zone in the zonelist under zone_scan_lock so a 568 * Lock each zone in the zonelist under zone_scan_lock so a
569 * parallel invocation of try_set_zone_oom() doesn't succeed 569 * parallel invocation of try_set_zonelist_oom() doesn't succeed
570 * when it shouldn't. 570 * when it shouldn't.
571 */ 571 */
572 zone_set_flag(zone, ZONE_OOM_LOCKED); 572 zone_set_flag(zone, ZONE_OOM_LOCKED);