mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
mm/page-flags: make PageMappingFlags return bool
Make PageMappingFlags() return bool like folio_mapping_flags(). Link: https://lkml.kernel.org/r/20240321030712.80618-1-gehao@kylinos.cn Signed-off-by: Hao Ge <gehao@kylinos.cn> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
eff201b875
commit
64c2e895df
@ -686,7 +686,7 @@ static __always_inline bool folio_mapping_flags(const struct folio *folio)
|
||||
return ((unsigned long)folio->mapping & PAGE_MAPPING_FLAGS) != 0;
|
||||
}
|
||||
|
||||
static __always_inline int PageMappingFlags(const struct page *page)
|
||||
static __always_inline bool PageMappingFlags(const struct page *page)
|
||||
{
|
||||
return ((unsigned long)page->mapping & PAGE_MAPPING_FLAGS) != 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user