|
@@ -226,13 +226,6 @@ unsigned long oom_badness(struct task_struct *p, struct mem_cgroup *memcg,
|
|
mm_pgtables_bytes(p->mm) / PAGE_SIZE;
|
|
mm_pgtables_bytes(p->mm) / PAGE_SIZE;
|
|
task_unlock(p);
|
|
task_unlock(p);
|
|
|
|
|
|
- /*
|
|
|
|
- * Root processes get 3% bonus, just like the __vm_enough_memory()
|
|
|
|
- * implementation used by LSMs.
|
|
|
|
- */
|
|
|
|
- if (has_capability_noaudit(p, CAP_SYS_ADMIN))
|
|
|
|
- points -= (points * 3) / 100;
|
|
|
|
-
|
|
|
|
/* Normalize to oom_score_adj units */
|
|
/* Normalize to oom_score_adj units */
|
|
adj *= totalpages / 1000;
|
|
adj *= totalpages / 1000;
|
|
points += adj;
|
|
points += adj;
|