diff options
-rw-r--r-- | mm/vmscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index c712b946e4ff..85e95f445022 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1074,9 +1074,9 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan, | |||
1074 | { | 1074 | { |
1075 | unsigned long nr_taken = 0; | 1075 | unsigned long nr_taken = 0; |
1076 | struct page *page; | 1076 | struct page *page; |
1077 | unsigned long scan = 0; | 1077 | unsigned long scan; |
1078 | 1078 | ||
1079 | while (scan++ < nr_to_scan && !list_empty(src)) { | 1079 | for (scan = 0; scan < nr_to_scan && !list_empty(src); scan++) { |
1080 | struct list_head *target; | 1080 | struct list_head *target; |
1081 | page = lru_to_page(src); | 1081 | page = lru_to_page(src); |
1082 | prefetchw_prev_lru_page(page, src, flags); | 1082 | prefetchw_prev_lru_page(page, src, flags); |