Re: [PATCH v2] mm/page-flags: make PageMappingFlags return bool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21.03.24 04:07, Hao Ge wrote:
make PageMappingFlags return bool like folio_mapping_flags

Signed-off-by: Hao Ge <gehao@xxxxxxxxxx>

---
v2: Send this patch on the latest version
---
  include/linux/page-flags.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 652d77805e99..5ee2d0ab62c6 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -668,7 +668,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;
  }

Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>

--
Cheers,

David / dhildenb





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux