|
@@ -929,18 +929,10 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan,
|
|
/* Check that we have not crossed a zone boundary. */
|
|
/* Check that we have not crossed a zone boundary. */
|
|
if (unlikely(page_zone_id(cursor_page) != zone_id))
|
|
if (unlikely(page_zone_id(cursor_page) != zone_id))
|
|
continue;
|
|
continue;
|
|
- switch (__isolate_lru_page(cursor_page, mode, file)) {
|
|
|
|
- case 0:
|
|
|
|
|
|
+ if (__isolate_lru_page(cursor_page, mode, file) == 0) {
|
|
list_move(&cursor_page->lru, dst);
|
|
list_move(&cursor_page->lru, dst);
|
|
nr_taken++;
|
|
nr_taken++;
|
|
scan++;
|
|
scan++;
|
|
- break;
|
|
|
|
-
|
|
|
|
- case -EBUSY:
|
|
|
|
- /* else it is being freed elsewhere */
|
|
|
|
- list_move(&cursor_page->lru, src);
|
|
|
|
- default:
|
|
|
|
- break; /* ! on LRU or wrong list */
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|