diff options
Diffstat (limited to 'mm/memory-failure.c')
-rw-r--r-- | mm/memory-failure.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 17299fd4577c..d1f335162976 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c | |||
@@ -383,9 +383,12 @@ static void collect_procs_anon(struct page *page, struct list_head *to_kill, | |||
383 | if (av == NULL) /* Not actually mapped anymore */ | 383 | if (av == NULL) /* Not actually mapped anymore */ |
384 | goto out; | 384 | goto out; |
385 | for_each_process (tsk) { | 385 | for_each_process (tsk) { |
386 | struct anon_vma_chain *vmac; | ||
387 | |||
386 | if (!task_early_kill(tsk)) | 388 | if (!task_early_kill(tsk)) |
387 | continue; | 389 | continue; |
388 | list_for_each_entry (vma, &av->head, anon_vma_node) { | 390 | list_for_each_entry(vmac, &av->head, same_anon_vma) { |
391 | vma = vmac->vma; | ||
389 | if (!page_mapped_in_vma(page, vma)) | 392 | if (!page_mapped_in_vma(page, vma)) |
390 | continue; | 393 | continue; |
391 | if (vma->vm_mm == tsk->mm) | 394 | if (vma->vm_mm == tsk->mm) |