mm/vmscan: Optimise shrink_page_list for non-PMD-sized folios
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 15 Aug 2020 23:28:51 +0000 (19:28 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 1 Mar 2022 02:01:35 +0000 (21:01 -0500)
commit7e8dbad11dd35d72b8306032adf24897cd722bb5
tree29a4e0f4a616907e87b5e3febd15b020886e656d
parentb7a7921583534b07b6d4ab09c52c9ca27b272a70
mm/vmscan: Optimise shrink_page_list for non-PMD-sized folios

A large folio which is smaller than a PMD does not need to do the extra
work in try_to_unmap() of trying to split a PMD entry.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/vmscan.c