mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm/page-flags: make PageMappingFlags return bool
@ 2024-03-07 13:13 Hao Ge
  2024-03-21  3:07 ` [PATCH v2] " Hao Ge
  0 siblings, 1 reply; 4+ messages in thread
From: Hao Ge @ 2024-03-07 13:13 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, gehao618, Hao Ge

make PageMappingFlags return bool like folio_mapping_flags

Signed-off-by: Hao Ge <gehao@kylinos.cn>
---
 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-04 19:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-07 13:13 [PATCH] mm/page-flags: make PageMappingFlags return bool Hao Ge
2024-03-21  3:07 ` [PATCH v2] " Hao Ge
2024-03-21  3:12   ` Matthew Wilcox
2024-04-04 19:26   ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®