Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155973
b: refs/heads/master
c: a6a9f81
h: refs/heads/master
i:
  155971: dab67bb
v: v3
  • Loading branch information
David Rientjes authored and Greg Kroah-Hartman committed Jul 28, 2009
1 parent da2b712 commit 2992b8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: de8f8bd63334fe2014be7d9ab3a81ce9b96e5d19
refs/heads/master: a6a9f81ccc9f5c86ccc22bbed1960a57d0316e8b
8 changes: 5 additions & 3 deletions trunk/drivers/staging/android/lowmemorykiller.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,21 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)

read_lock(&tasklist_lock);
for_each_process(p) {
struct mm_struct *mm;
int oom_adj;

task_lock(p);
if (!p->mm) {
mm = p->mm;
if (!mm) {
task_unlock(p);
continue;
}
oom_adj = p->oomkilladj;
oom_adj = mm->oom_adj;
if (oom_adj < min_adj) {
task_unlock(p);
continue;
}
tasksize = get_mm_rss(p->mm);
tasksize = get_mm_rss(mm);
task_unlock(p);
if (tasksize <= 0)
continue;
Expand Down

0 comments on commit 2992b8e

Please sign in to comment.