diff options
-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 f5b5f029288c..5be8107e7758 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -286,6 +286,11 @@ static inline int page_mapping_inuse(struct page *page) | |||
286 | 286 | ||
287 | static inline int is_page_cache_freeable(struct page *page) | 287 | static inline int is_page_cache_freeable(struct page *page) |
288 | { | 288 | { |
289 | /* | ||
290 | * A freeable page cache page is referenced only by the caller | ||
291 | * that isolated the page, the page cache radix tree and | ||
292 | * optional buffer heads at page->private. | ||
293 | */ | ||
289 | return page_count(page) - page_has_private(page) == 2; | 294 | return page_count(page) - page_has_private(page) == 2; |
290 | } | 295 | } |
291 | 296 | ||