diff --git a/mm/memory.c b/mm/memory.c index 848427433d07f2..f9c94476f0330f 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1105,7 +1105,10 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, if (!PageAnon(page)) { if (pte_dirty(ptent)) { - /* oom_reaper cannot tear down dirty pages */ + /* + * oom_reaper cannot tear down dirty + * pages + */ if (unlikely(details && details->ignore_dirty)) continue; force_flush = 1; diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 07ff2565ed8df6..efd1a75d49afa6 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -482,7 +482,9 @@ static int oom_reaper(void *unused) { while (true) { struct mm_struct *mm; - wait_event_freezable(oom_reaper_wait, (mm = READ_ONCE(mm_to_reap))); + + wait_event_freezable(oom_reaper_wait, + (mm = READ_ONCE(mm_to_reap))); oom_reap_vmas(mm); WRITE_ONCE(mm_to_reap, NULL); } @@ -720,9 +722,9 @@ void oom_kill_process(struct oom_control *oc, struct task_struct *p, if (unlikely(p->flags & PF_KTHREAD) || p->signal->oom_score_adj == OOM_SCORE_ADJ_MIN) { /* - * We cannot use oom_reaper for the mm shared by this process - * because it wouldn't get killed and so the memory might be - * still used. + * We cannot use oom_reaper for the mm shared by this + * process because it wouldn't get killed and so the + * memory might be still used. */ can_oom_reap = false; continue;