[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240321030712.80618-1-gehao@kylinos.cn>
Date: Thu, 21 Mar 2024 11:07:12 +0800
From: Hao Ge <gehao@...inos.cn>
To: akpm@...ux-foundation.org
Cc: willy@...radead.org,
gehao618@....com,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
Hao Ge <gehao@...inos.cn>
Subject: [PATCH v2] mm/page-flags: make PageMappingFlags return bool
make PageMappingFlags return bool like folio_mapping_flags
Signed-off-by: Hao Ge <gehao@...inos.cn>
---
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;
}
--
2.25.1
Powered by blists - more mailing lists