]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c3ac903e12bd4810eb637f21425ded6738e9c6d
tree5213d42955d315652e3cd0d1633e693e4a1afda4
parent191305cf14308efe95607068cc12a52347328475
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