projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a96cfd6
)
oom: cleanup has_intersects_mems_allowed()
author
KOSAKI Motohiro
<
[email protected]
>
Tue, 10 Aug 2010 00:19:39 +0000
(17:19 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 10 Aug 2010 03:45:01 +0000
(20:45 -0700)
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 <
[email protected]
>
Reviewed-by: Minchan Kim <
[email protected]
>
Cc: David Rientjes <
[email protected]
>
Cc: KAMEZAWA Hiroyuki <
[email protected]
>
Cc: Oleg Nesterov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/oom_kill.c
patch
|
blob
|
history
diff --git
a/mm/oom_kill.c
b/mm/oom_kill.c
index 79b34831ad79c9d061b3a17a6e3dc2dd8cf9aad4..342d4333f71872dcf056c8a6db0e237172124ab4 100644
(file)
--- a/
mm/oom_kill.c
+++ b/
mm/oom_kill.c
@@
-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