]> err.no Git - linux-2.6/blobdiff - mm/memory.c
[PATCH] page migration cleanup: rename "ignrefs" to "migration"
[linux-2.6] / mm / memory.c
index 0ec7bc644271cf6ee2b88b7d32cc7987c5ea6dc6..7e3683fd4f3ca706439ce3bbac5c79b23b19da61 100644 (file)
@@ -1879,7 +1879,6 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
                goto out;
 
        entry = pte_to_swp_entry(orig_pte);
-again:
        page = lookup_swap_cache(entry);
        if (!page) {
                swapin_readahead(entry, address, vma);
@@ -1903,12 +1902,6 @@ again:
 
        mark_page_accessed(page);
        lock_page(page);
-       if (!PageSwapCache(page)) {
-               /* Page migration has occured */
-               unlock_page(page);
-               page_cache_release(page);
-               goto again;
-       }
 
        /*
         * Back out if somebody else already faulted in this pte.