diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 2804d23e2da7..9babfbc1ddc8 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -2332,11 +2332,16 @@ int zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order) | |||
2332 | * lists vs unevictable list. | 2332 | * lists vs unevictable list. |
2333 | * | 2333 | * |
2334 | * Reasons page might not be evictable: | 2334 | * Reasons page might not be evictable: |
2335 | * (1) page's mapping marked unevictable | ||
2336 | * | ||
2335 | * TODO - later patches | 2337 | * TODO - later patches |
2336 | */ | 2338 | */ |
2337 | int page_evictable(struct page *page, struct vm_area_struct *vma) | 2339 | int page_evictable(struct page *page, struct vm_area_struct *vma) |
2338 | { | 2340 | { |
2339 | 2341 | ||
2342 | if (mapping_unevictable(page_mapping(page))) | ||
2343 | return 0; | ||
2344 | |||
2340 | /* TODO: test page [!]evictable conditions */ | 2345 | /* TODO: test page [!]evictable conditions */ |
2341 | 2346 | ||
2342 | return 1; | 2347 | return 1; |