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>
This commit is contained in:
parent
0104096498
commit
eff201b875
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user