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>
Mon, 21 Mar 2022 17:01:35 +0000 (13:01 -0400)
commit820c4e2e6f517e4c0cee703265e275e3a08992e6
tree13052e1ddebcdb199928f7cb534fa27560bd3f21
parent84fbbe21894bb9be8e16df408cbfbb9466fe396d
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