[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240307132859.171048-1-gehao@kylinos.cn>
Date: Thu, 7 Mar 2024 21:28:59 +0800
From: Hao Ge <gehao@...inos.cn>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org,
gehao618@....com,
Hao Ge <gehao@...inos.cn>
Subject: [PATCH] mm/page-flags: make __PageMovable return bool
make __PageMovable return bool like __folio_test_movable
Signed-off-by: Hao Ge <gehao@...inos.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..3f2cf3d3b86b 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -663,7 +663,7 @@ static __always_inline bool __folio_test_movable(const struct folio *folio)
PAGE_MAPPING_MOVABLE;
}
-static __always_inline int __PageMovable(struct page *page)
+static __always_inline bool __PageMovable(struct page *page)
{
return ((unsigned long)page->mapping & PAGE_MAPPING_FLAGS) ==
PAGE_MAPPING_MOVABLE;
--
2.25.1
Powered by blists - more mailing lists