]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/page-flags: make __PageMovable return bool
authorHao Ge <gehao@kylinos.cn>
Thu, 21 Mar 2024 03:22:56 +0000 (11:22 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:56:01 +0000 (20:56 -0700)
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>
include/linux/page-flags.h

index 73e0b17c77283f2426498f6e25094c7b3273174f..9c7ca28ac84ca4dac3f54ed1668f64dba14399db 100644 (file)
@@ -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;