mm: Add split_folio_to_list()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 18 Jan 2022 13:56:47 +0000 (08:56 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 25 Feb 2022 14:10:23 +0000 (09:10 -0500)
commit145ee4957c5dcfe748ca7486c28f6e130574acb0
treec556723a7006b758d66657ac27d3c1ad2ab81671
parent82865a9e1187eb0624f0db5c6e81172579638a2b
mm: Add split_folio_to_list()

This is a convenience function; split_huge_page_to_list() can take
any page in a folio (and does so on purpose because that page will
be the one which keeps the refcount).  But it's convenient for the
callers to pass the folio instead of the first page in the folio.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/linux/huge_mm.h
mm/vmscan.c