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>
Mon, 21 Mar 2022 16:59:02 +0000 (12:59 -0400)
commit346cf61311f6e348337e95aa2febe29e86137f42
tree5213d42955d315652e3cd0d1633e693e4a1afda4
parent4ba1119cd53166d853050ff1a9d76079cd8f8e06
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