aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2010-08-09 20:19:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-09 23:45:01 -0400
commitdf1090a8dda40b6e11d8cd09e8fc900cfe913b38 (patch)
tree9bc8a81f66a0a3a8c29685fba7389378fe9f768c
parenta96cfd6e9176ad442233001b7d15e9ed42234320 (diff)
oom: cleanup has_intersects_mems_allowed()
presently has_intersects_mems_allowed() has own thread iterate logic, but it should use while_each_thread(). It slightly improve the code readability. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> Cc: David Rientjes <rientjes@google.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-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 79b34831ad79..342d4333f718 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -69,8 +69,8 @@ static bool has_intersects_mems_allowed(struct task_struct *tsk,
69 if (cpuset_mems_allowed_intersects(current, tsk)) 69 if (cpuset_mems_allowed_intersects(current, tsk))
70 return true; 70 return true;
71 } 71 }
72 tsk = next_thread(tsk); 72 } while_each_thread(start, tsk);
73 } while (tsk != start); 73
74 return false; 74 return false;
75} 75}
76#else 76#else