Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288922
b: refs/heads/master
c: 3534160
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent 51c007c commit ca9471c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 95670001188911f9d466875cd68e3681f39df38a
refs/heads/master: 353416099128914a684e8bb81e7475d8c2961cc3
8 changes: 1 addition & 7 deletions trunk/drivers/staging/android/lowmemorykiller.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,13 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)
rcu_read_lock();
for_each_process(tsk) {
struct task_struct *p;
struct signal_struct *sig;
int oom_adj;

p = find_lock_task_mm(tsk);
if (!p)
continue;

sig = p->signal;
if (!sig) {
task_unlock(p);
continue;
}
oom_adj = sig->oom_adj;
oom_adj = p->signal->oom_adj;
if (oom_adj < min_adj) {
task_unlock(p);
continue;
Expand Down

0 comments on commit ca9471c

Please sign in to comment.