linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hao Ge <gehao@kylinos.cn>
To: akpm@linux-foundation.org, willy@infradead.org
Cc: gehao@kylinos.cn, gehao618@163.com, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org
Subject: [PATCH V2] mm/page-flags: make __PageMovable return bool
Date: Thu, 21 Mar 2024 11:22:56 +0800	[thread overview]
Message-ID: <20240321032256.82063-1-gehao@kylinos.cn> (raw)
In-Reply-To: <20240307132859.171048-1-gehao@kylinos.cn>

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



           reply	other threads:[~2024-03-21  3:23 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20240307132859.171048-1-gehao@kylinos.cn>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240321032256.82063-1-gehao@kylinos.cn \
    --to=gehao@kylinos.cn \
    --cc=akpm@linux-foundation.org \
    --cc=gehao618@163.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).