]> 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)
commit4d968933dfbdc8b220768a1e8b14538e8ea69c2b
tree5213d42955d315652e3cd0d1633e693e4a1afda4
parent0b457298dac3a5260fe4fbea52b9446ab88efdd9
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