diff options
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index b935e6f0d695..8a4e767fb8ac 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1166,7 +1166,7 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan, | |||
1166 | * anon page which don't already have a swap slot is | 1166 | * anon page which don't already have a swap slot is |
1167 | * pointless. | 1167 | * pointless. |
1168 | */ | 1168 | */ |
1169 | if (nr_swap_pages <= 0 && PageAnon(cursor_page) && | 1169 | if (nr_swap_pages <= 0 && PageSwapBacked(cursor_page) && |
1170 | !PageSwapCache(cursor_page)) | 1170 | !PageSwapCache(cursor_page)) |
1171 | break; | 1171 | break; |
1172 | 1172 | ||