thp: implement split_huge_pmd()
[deliverable/linux.git] / mm / oom_kill.c
index d13a33918fa23e685bc629bc23f58d97729beb62..dc490c06941b2a6be5170c0d9ca73418b7fe8619 100644 (file)
@@ -585,10 +585,11 @@ void oom_kill_process(struct oom_control *oc, struct task_struct *p,
         */
        do_send_sig_info(SIGKILL, SEND_SIG_FORCED, victim, true);
        mark_oom_victim(victim);
-       pr_err("Killed process %d (%s) total-vm:%lukB, anon-rss:%lukB, file-rss:%lukB\n",
+       pr_err("Killed process %d (%s) total-vm:%lukB, anon-rss:%lukB, file-rss:%lukB, shmem-rss:%lukB\n",
                task_pid_nr(victim), victim->comm, K(victim->mm->total_vm),
                K(get_mm_counter(victim->mm, MM_ANONPAGES)),
-               K(get_mm_counter(victim->mm, MM_FILEPAGES)));
+               K(get_mm_counter(victim->mm, MM_FILEPAGES)),
+               K(get_mm_counter(victim->mm, MM_SHMEMPAGES)));
        task_unlock(victim);
 
        /*
@@ -608,6 +609,8 @@ void oom_kill_process(struct oom_control *oc, struct task_struct *p,
                        continue;
                if (unlikely(p->flags & PF_KTHREAD))
                        continue;
+               if (is_global_init(p))
+                       continue;
                if (p->signal->oom_score_adj == OOM_SCORE_ADJ_MIN)
                        continue;
 
This page took 0.027781 seconds and 5 git commands to generate.