]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Add three folio wrappers
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:57:38 +0000 (12:57 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:57:38 +0000 (12:57 -0400)
commiteef30eaf5be136b508267150b2cf7edf65cd1781
tree8f4e3afb1d9b4807d2d7e6707873c6f6c662da75
parent41457e638a130adca43aed87e60ba8ab2421e10b
mm: Add three folio wrappers

folio_is_zone_device() is equivalent to is_zone_device_page(),
folio_is_device_private() is equivalent to is_device_private_page(),
and folio_is_pinnable() is equivalent to is_pinnable_page().

All of these tests return the same result for every page in the folio,
so we can just pass the head page of the folio to the page variant of
the function.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/memremap.h
include/linux/mm.h