Commit 3efe62e4 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Linus Torvalds
Browse files

mm/vmscan: allow arbitrary sized pages to be paged out

parent 8854a6a7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -725,8 +725,7 @@ static inline int is_page_cache_freeable(struct page *page)
	 * that isolated the page, the page cache and optional buffer
	 * heads at page->private.
	 */
	int page_cache_pins = PageTransHuge(page) && PageSwapCache(page) ?
		HPAGE_PMD_NR : 1;
	int page_cache_pins = thp_nr_pages(page);
	return page_count(page) - page_has_private(page) == 1 + page_cache_pins;
}