[PATCH] mm/page-flags: make PageMappingFlags return bool

From: Hao Ge
Date: Thu Mar 07 2024 - 08:13:35 EST


make PageMappingFlags return bool like folio_mapping_flags

Signed-off-by: Hao Ge <gehao@xxxxxxxxxx>
---
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 735cddc13d20..30740304059f 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -642,7 +642,7 @@ static __always_inline bool folio_mapping_flags(struct folio *folio)
return ((unsigned long)folio->mapping & PAGE_MAPPING_FLAGS) != 0;
}

-static __always_inline int PageMappingFlags(struct page *page)
+static __always_inline bool PageMappingFlags(struct page *page)
{
return ((unsigned long)page->mapping & PAGE_MAPPING_FLAGS) != 0;
}
--
2.25.1