Commit eff201b8 authored by Hao Ge's avatar Hao Ge Committed by Andrew Morton
Browse files

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: default avatarHao Ge <gehao@kylinos.cn>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 01040964
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;