mm: Add four folio wrappers
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 28 Jan 2022 19:27:39 +0000 (14:27 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 17 Feb 2022 22:05:53 +0000 (17:05 -0500)
commitc0e8c878bb186c920c13016d00772406adeab567
tree6eb3c96536d1d754e10f0bdae750a983143b281e
parentd2f6480b18552b71e8a9b38fcbf14efef1667f18
mm: Add four folio wrappers

folio_is_zone_device() is equivalent to is_zone_device_page(),
folio_is_device_private() is equivalent to is_device_private_page(),
folio_is_device_coherent() is equivalent to is_device_coherent_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