Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281194
b: refs/heads/master
c: 23687af
h: refs/heads/master
v: v3
  • Loading branch information
Corentin Chary authored and Greg Kroah-Hartman committed Nov 30, 2011
1 parent 61e4d20 commit 011de05
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 355b0502f6efea0ff9492753888772c96972d2a3
refs/heads/master: 23687af9317c9c01d4609667d3566af7f5e71e65
1 change: 1 addition & 0 deletions trunk/drivers/staging/android/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* GNU General Public License for more details.
*/

#include <linux/sched.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/staging/android/lowmemorykiller.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,17 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)
read_lock(&tasklist_lock);
for_each_process(p) {
struct mm_struct *mm;
struct signal_struct *sig;
int oom_adj;

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

0 comments on commit 011de05

Please sign in to comment.