Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310643
b: refs/heads/master
c: 1e11ad8
h: refs/heads/master
i:
  310641: 694f4b0
  310639: e917ca7
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Jun 8, 2012
1 parent 1c05ddf commit b3aa432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72494504498ff5ac2f086a83473d4dd1ca490bd3
refs/heads/master: 1e11ad8dc42975d5c2bab7d478f6cd875602eda4
4 changes: 2 additions & 2 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static bool oom_unkillable_task(struct task_struct *p,
unsigned long oom_badness(struct task_struct *p, struct mem_cgroup *memcg,
const nodemask_t *nodemask, unsigned long totalpages)
{
unsigned long points;
long points;

if (oom_unkillable_task(p, memcg, nodemask))
return 0;
Expand Down Expand Up @@ -223,7 +223,7 @@ unsigned long oom_badness(struct task_struct *p, struct mem_cgroup *memcg,
* Never return 0 for an eligible task regardless of the root bonus and
* oom_score_adj (oom_score_adj can't be OOM_SCORE_ADJ_MIN here).
*/
return points ? points : 1;
return points > 0 ? points : 1;
}

/*
Expand Down

0 comments on commit b3aa432

Please sign in to comment.