diff options
| -rw-r--r-- | mm/oom_kill.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 82a92ad67af3..c4c9ecd17c6e 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
| @@ -226,13 +226,6 @@ unsigned long oom_badness(struct task_struct *p, struct mem_cgroup *memcg, | |||
| 226 | mm_pgtables_bytes(p->mm) / PAGE_SIZE; | 226 | mm_pgtables_bytes(p->mm) / PAGE_SIZE; |
| 227 | task_unlock(p); | 227 | task_unlock(p); |
| 228 | 228 | ||
| 229 | /* | ||
| 230 | * Root processes get 3% bonus, just like the __vm_enough_memory() | ||
| 231 | * implementation used by LSMs. | ||
| 232 | */ | ||
| 233 | if (has_capability_noaudit(p, CAP_SYS_ADMIN)) | ||
| 234 | points -= (points * 3) / 100; | ||
| 235 | |||
| 236 | /* Normalize to oom_score_adj units */ | 229 | /* Normalize to oom_score_adj units */ |
| 237 | adj *= totalpages / 1000; | 230 | adj *= totalpages / 1000; |
| 238 | points += adj; | 231 | points += adj; |
