summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Ge <gehao@kylinos.cn>2024-03-21 06:22:56 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-04-26 06:56:01 +0300
commiteff201b8755bbc95a65165960a6464ca2ae18587 (patch)
treed003a15f5fa8131a6422f1ea58ed3061f751ba58
parent0104096498858346e3ac0668add1bf682461d4aa (diff)
downloadlinux-eff201b8755bbc95a65165960a6464ca2ae18587.tar.xz
mm/page-flags: make __PageMovable return bool
Make __PageMovable() return bool like __folio_test_movable(). Link: https://lkml.kernel.org/r/20240321032256.82063-1-gehao@kylinos.cn Signed-off-by: Hao Ge <gehao@kylinos.cn> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--include/linux/page-flags.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 73e0b17c7728..9c7ca28ac84c 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -707,7 +707,7 @@ static __always_inline bool __folio_test_movable(const struct folio *folio)
PAGE_MAPPING_MOVABLE;
}
-static __always_inline int __PageMovable(const struct page *page)
+static __always_inline bool __PageMovable(const struct page *page)
{
return ((unsigned long)page->mapping & PAGE_MAPPING_FLAGS) ==
PAGE_MAPPING_MOVABLE;