diff options
| author | James Morris <jmorris@namei.org> | 2008-12-24 19:40:09 -0500 |
|---|---|---|
| committer | James Morris <jmorris@namei.org> | 2008-12-24 19:40:09 -0500 |
| commit | cbacc2c7f066a1e01b33b0e27ae5efbf534bc2db (patch) | |
| tree | 90d1093131d2a3543a8b3b1f3364e7c6f4081a93 /mm/oom_kill.c | |
| parent | 4a6908a3a050aacc9c3a2f36b276b46c0629ad91 (diff) | |
| parent | 74192246910ff4fb95309ba1a683215644beeb62 (diff) | |
Merge branch 'next' into for-linus
Diffstat (limited to 'mm/oom_kill.c')
| -rw-r--r-- | mm/oom_kill.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index a0a01902f55..558f9afe6e4 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
| @@ -128,8 +128,8 @@ unsigned long badness(struct task_struct *p, unsigned long uptime) | |||
| 128 | * Superuser processes are usually more important, so we make it | 128 | * Superuser processes are usually more important, so we make it |
| 129 | * less likely that we kill those. | 129 | * less likely that we kill those. |
| 130 | */ | 130 | */ |
| 131 | if (has_capability(p, CAP_SYS_ADMIN) || | 131 | if (has_capability_noaudit(p, CAP_SYS_ADMIN) || |
| 132 | has_capability(p, CAP_SYS_RESOURCE)) | 132 | has_capability_noaudit(p, CAP_SYS_RESOURCE)) |
| 133 | points /= 4; | 133 | points /= 4; |
| 134 | 134 | ||
| 135 | /* | 135 | /* |
| @@ -138,7 +138,7 @@ unsigned long badness(struct task_struct *p, unsigned long uptime) | |||
| 138 | * tend to only have this flag set on applications they think | 138 | * tend to only have this flag set on applications they think |
| 139 | * of as important. | 139 | * of as important. |
| 140 | */ | 140 | */ |
| 141 | if (has_capability(p, CAP_SYS_RAWIO)) | 141 | if (has_capability_noaudit(p, CAP_SYS_RAWIO)) |
| 142 | points /= 4; | 142 | points /= 4; |
| 143 | 143 | ||
| 144 | /* | 144 | /* |
| @@ -299,9 +299,9 @@ static void dump_tasks(const struct mem_cgroup *mem) | |||
| 299 | 299 | ||
| 300 | task_lock(p); | 300 | task_lock(p); |
| 301 | printk(KERN_INFO "[%5d] %5d %5d %8lu %8lu %3d %3d %s\n", | 301 | printk(KERN_INFO "[%5d] %5d %5d %8lu %8lu %3d %3d %s\n", |
| 302 | p->pid, p->uid, p->tgid, p->mm->total_vm, | 302 | p->pid, __task_cred(p)->uid, p->tgid, |
| 303 | get_mm_rss(p->mm), (int)task_cpu(p), p->oomkilladj, | 303 | p->mm->total_vm, get_mm_rss(p->mm), (int)task_cpu(p), |
| 304 | p->comm); | 304 | p->oomkilladj, p->comm); |
| 305 | task_unlock(p); | 305 | task_unlock(p); |
| 306 | } while_each_thread(g, p); | 306 | } while_each_thread(g, p); |
| 307 | } | 307 | } |
