lkml.org 
[lkml]   [2009]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Staging: android: replace oomkilladj with oom_adj
Date
Commit 2ff05b2b (oom: move oom_adj value from task_struct to mm_struct)
changed it.
Fix build.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
drivers/staging/android/lowmemorykiller.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c
index fe72240..e34dc38 100644
--- a/drivers/staging/android/lowmemorykiller.c
+++ b/drivers/staging/android/lowmemorykiller.c
@@ -103,7 +103,7 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)
task_unlock(p);
continue;
}
- oom_adj = p->oomkilladj;
+ oom_adj = p->mm->oom_adj;
if (oom_adj < min_adj) {
task_unlock(p);
continue;
--
1.6.3.1


\
 
 \ /
  Last update: 2009-06-18 19:05    [W:0.033 / U:4.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site