projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0104096
)
mm/page-flags: make __PageMovable return bool
author
Hao Ge
<gehao@kylinos.cn>
Thu, 21 Mar 2024 03:22:56 +0000
(11:22 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:56:01 +0000
(20:56 -0700)
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>
include/linux/page-flags.h
patch
|
blob
|
history
diff --git
a/include/linux/page-flags.h
b/include/linux/page-flags.h
index 73e0b17c77283f2426498f6e25094c7b3273174f..9c7ca28ac84ca4dac3f54ed1668f64dba14399db 100644
(file)
--- a/
include/linux/page-flags.h
+++ b/
include/linux/page-flags.h
@@
-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;