diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index da73742e52a5..ad15b5ef2599 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -55,16 +55,7 @@ int migrate_prep(void) | |||
55 | 55 | ||
56 | static inline void move_to_lru(struct page *page) | 56 | static inline void move_to_lru(struct page *page) |
57 | { | 57 | { |
58 | if (PageActive(page)) { | 58 | lru_cache_add_lru(page, page_lru(page)); |
59 | /* | ||
60 | * lru_cache_add_active checks that | ||
61 | * the PG_active bit is off. | ||
62 | */ | ||
63 | ClearPageActive(page); | ||
64 | lru_cache_add_active(page); | ||
65 | } else { | ||
66 | lru_cache_add(page); | ||
67 | } | ||
68 | put_page(page); | 59 | put_page(page); |
69 | } | 60 | } |
70 | 61 | ||