mm/rmap, migration: Make rmap_walk_anon() and try_to_unmap_anon() more scalable
[linux-2.6-block.git] / mm / memory-failure.c
index ddb68a169e4517f085cca927453e4c67424f1e43..f2cd830f66c0768efa4c31b69d014c4ebc813f7b 100644 (file)
@@ -402,7 +402,7 @@ static void collect_procs_anon(struct page *page, struct list_head *to_kill,
        struct anon_vma *av;
        pgoff_t pgoff;
 
-       av = page_lock_anon_vma(page);
+       av = page_lock_anon_vma_read(page);
        if (av == NULL) /* Not actually mapped anymore */
                return;
 
@@ -423,7 +423,7 @@ static void collect_procs_anon(struct page *page, struct list_head *to_kill,
                }
        }
        read_unlock(&tasklist_lock);
-       page_unlock_anon_vma(av);
+       page_unlock_anon_vma_read(av);
 }
 
 /*