diff options
author | davem <davem> | 2000-11-15 00:13:53 +0000 |
---|---|---|
committer | davem <davem> | 2000-11-15 00:13:53 +0000 |
commit | 1ba18f5a8533190c98d46f54a3e1a945652be70b (patch) | |
tree | cd48ccea8742bd998f8655c2dbec501fc79b2e07 /mm | |
parent | cd444b15344d6fab984ac5ffacd7ccfbd1e0774d (diff) | |
download | netdev-vger-cvs-1ba18f5a8533190c98d46f54a3e1a945652be70b.tar.gz |
Merge mainline to test11-pre5
Diffstat (limited to 'mm')
-rw-r--r-- | mm/oom_kill.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index d49fab93a..45e865d25 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -117,18 +117,18 @@ static int badness(struct task_struct *p) */ static struct task_struct * select_bad_process(void) { - int points = 0, maxpoints = 0; + int maxpoints = 0; struct task_struct *p = NULL; struct task_struct *chosen = NULL; read_lock(&tasklist_lock); - for_each_task(p) - { - if (p->pid) - points = badness(p); - if (points > maxpoints) { - chosen = p; - maxpoints = points; + for_each_task(p) { + if (p->pid) { + int points = badness(p); + if (points > maxpoints) { + chosen = p; + maxpoints = points; + } } } read_unlock(&tasklist_lock); |