make PageMappingFlags return bool like folio_mapping_flags
Signed-off-by: Hao Ge <gehao@xxxxxxxxxx>
---
v2: Send this patch on the latest version
---
include/linux/page-flags.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 652d77805e99..5ee2d0ab62c6 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -668,7 +668,7 @@ static __always_inline bool folio_mapping_flags(const struct folio *folio)
return ((unsigned long)folio->mapping & PAGE_MAPPING_FLAGS) != 0;
}
-static __always_inline int PageMappingFlags(const struct page *page)
+static __always_inline bool PageMappingFlags(const struct page *page)
{
return ((unsigned long)page->mapping & PAGE_MAPPING_FLAGS) != 0;
}