diff options
author | 2022-03-21 12:57:38 -0400 | |
---|---|---|
committer | 2022-03-21 12:57:38 -0400 | |
commit | 536939ff516382b391a0039262e27fc80c7b3924 (patch) | |
tree | 8f4e3afb1d9b4807d2d7e6707873c6f6c662da75 /mm/gup.c | |
parent | mm: Turn isolate_lru_page() into folio_isolate_lru() (diff) | |
download | linux-536939ff516382b391a0039262e27fc80c7b3924.tar.gz linux-536939ff516382b391a0039262e27fc80c7b3924.tar.bz2 linux-536939ff516382b391a0039262e27fc80c7b3924.zip |
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>
Diffstat (limited to 'mm/gup.c')
0 files changed, 0 insertions, 0 deletions