diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 3018ad756133..4139aa52b941 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -929,18 +929,10 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan, | |||
929 | /* Check that we have not crossed a zone boundary. */ | 929 | /* Check that we have not crossed a zone boundary. */ |
930 | if (unlikely(page_zone_id(cursor_page) != zone_id)) | 930 | if (unlikely(page_zone_id(cursor_page) != zone_id)) |
931 | continue; | 931 | continue; |
932 | switch (__isolate_lru_page(cursor_page, mode, file)) { | 932 | if (__isolate_lru_page(cursor_page, mode, file) == 0) { |
933 | case 0: | ||
934 | list_move(&cursor_page->lru, dst); | 933 | list_move(&cursor_page->lru, dst); |
935 | nr_taken++; | 934 | nr_taken++; |
936 | scan++; | 935 | scan++; |
937 | break; | ||
938 | |||
939 | case -EBUSY: | ||
940 | /* else it is being freed elsewhere */ | ||
941 | list_move(&cursor_page->lru, src); | ||
942 | default: | ||
943 | break; /* ! on LRU or wrong list */ | ||
944 | } | 936 | } |
945 | } | 937 | } |
946 | } | 938 | } |