]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/migrate.c
swap: use an array for the LRU pagevecs
[linux-2.6-omap-h63xx.git] / mm / migrate.c
index da73742e52a54d2aca016bc46ca74e152c447a40..ad15b5ef25997d8176fa48de056ced57c5a23b94 100644 (file)
@@ -55,16 +55,7 @@ int migrate_prep(void)
 
 static inline void move_to_lru(struct page *page)
 {
-       if (PageActive(page)) {
-               /*
-                * lru_cache_add_active checks that
-                * the PG_active bit is off.
-                */
-               ClearPageActive(page);
-               lru_cache_add_active(page);
-       } else {
-               lru_cache_add(page);
-       }
+       lru_cache_add_lru(page, page_lru(page));
        put_page(page);
 }