mm/vmscan: Free non-shmem folios without splitting them
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 30 Sep 2020 20:15:46 +0000 (16:15 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 1 Mar 2022 02:01:35 +0000 (21:01 -0500)
commitb7a7921583534b07b6d4ab09c52c9ca27b272a70
tree22f1ba662269d8c3998a6c7a2d6e579cd6644db2
parentd8d47bcf71788d7720ae029936d1e003e8b387ff
mm/vmscan: Free non-shmem folios without splitting them

We have to allocate memory in order to split a file-backed folio, so
it's not a good idea to split them in the memory freeing path.  It also
doesn't work for XFS because pages have an extra reference count from
page_has_private() and split_huge_page() expects that reference to have
already been removed.  Unfortunately, we still have to split shmem THPs
because we can't handle swapping out an entire THP yet.

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