mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
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>
This commit is contained in:
parent
a96cfd6e91
commit
df1090a8dd
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ static bool has_intersects_mems_allowed(struct task_struct *tsk,
|
|||
if (cpuset_mems_allowed_intersects(current, tsk))
|
||||
return true;
|
||||
}
|
||||
tsk = next_thread(tsk);
|
||||
} while (tsk != start);
|
||||
} while_each_thread(start, tsk);
|
||||
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue