|
@@ -1356,7 +1356,7 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
|
|
* IO, plus JVM can create lots of anon VM_EXEC pages,
|
|
* IO, plus JVM can create lots of anon VM_EXEC pages,
|
|
* so we ignore them here.
|
|
* so we ignore them here.
|
|
*/
|
|
*/
|
|
- if ((vm_flags & VM_EXEC) && !PageAnon(page)) {
|
|
|
|
|
|
+ if ((vm_flags & VM_EXEC) && page_is_file_cache(page)) {
|
|
list_add(&page->lru, &l_active);
|
|
list_add(&page->lru, &l_active);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|