* [PATCH] mm/page-flags: make __PageMovable return bool
@ 2024-03-07 13:28 Hao Ge
2024-03-21 3:22 ` [PATCH V2] " Hao Ge
0 siblings, 1 reply; 3+ messages in thread
From: Hao Ge @ 2024-03-07 13:28 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, gehao618, Hao Ge
make __PageMovable return bool like __folio_test_movable
Signed-off-by: Hao Ge <gehao@kylinos.cn>
---
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 735cddc13d20..3f2cf3d3b86b 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -663,7 +663,7 @@ static __always_inline bool __folio_test_movable(const struct folio *folio)
PAGE_MAPPING_MOVABLE;
}
-static __always_inline int __PageMovable(struct page *page)
+static __always_inline bool __PageMovable(struct page *page)
{
return ((unsigned long)page->mapping & PAGE_MAPPING_FLAGS) ==
PAGE_MAPPING_MOVABLE;
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH V2] mm/page-flags: make __PageMovable return bool
2024-03-07 13:28 [PATCH] mm/page-flags: make __PageMovable return bool Hao Ge
@ 2024-03-21 3:22 ` Hao Ge
2024-04-04 19:26 ` David Hildenbrand
0 siblings, 1 reply; 3+ messages in thread
From: Hao Ge @ 2024-03-21 3:22 UTC (permalink / raw)
To: akpm, willy; +Cc: gehao, gehao618, linux-kernel, linux-mm
make __PageMovable return bool like __folio_test_movable
Signed-off-by: Hao Ge <gehao@kylinos.cn>
---
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 5ee2d0ab62c6..2647c7a35c5a 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -689,7 +689,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;
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V2] mm/page-flags: make __PageMovable return bool
2024-03-21 3:22 ` [PATCH V2] " Hao Ge
@ 2024-04-04 19:26 ` David Hildenbrand
0 siblings, 0 replies; 3+ messages in thread
From: David Hildenbrand @ 2024-04-04 19:26 UTC (permalink / raw)
To: Hao Ge, akpm, willy; +Cc: gehao618, linux-kernel, linux-mm
On 21.03.24 04:22, Hao Ge wrote:
> make __PageMovable return bool like __folio_test_movable
>
> Signed-off-by: Hao Ge <gehao@kylinos.cn>
>
> ---
> 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 5ee2d0ab62c6..2647c7a35c5a 100644
> --- a/include/linux/page-flags.h
> +++ b/include/linux/page-flags.h
> @@ -689,7 +689,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;
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Cheers,
David / dhildenb
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-04 19:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-07 13:28 [PATCH] mm/page-flags: make __PageMovable return bool Hao Ge
2024-03-21 3:22 ` [PATCH V2] " Hao Ge
2024-04-04 19:26 ` David Hildenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®