projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
452c03f
)
mmzone: introduce folio_is_zone_movable()
author
Vishal Moola (Oracle)
<vishal.moola@gmail.com>
Wed, 14 Jun 2023 02:13:08 +0000
(19:13 -0700)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:34 +0000
(16:19 -0700)
Patch series "Replace is_longterm_pinnable_page()", v2.
This patchset introduces some more helper functions for the folio
conversions, and converts all callers of is_longterm_pinnable_page() to
use folios.
This patch (of 5):
Introduce folio_is_zone_movable() to act as a folio equivalent for
is_zone_movable_page(). This is to assist in later folio conversions.
Link:
https://lkml.kernel.org/r/20230614021312.34085-1-vishal.moola@gmail.com
Link:
https://lkml.kernel.org/r/20230614021312.34085-2-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
patch
|
blob
|
history
diff --git
a/include/linux/mmzone.h
b/include/linux/mmzone.h
index 5a7ada0413dac5bc279bc95a7c2ae4fe652d919e..f10902491ead29e07f0f63d8d1f03c606f877ec7 100644
(file)
--- a/
include/linux/mmzone.h
+++ b/
include/linux/mmzone.h
@@
-1116,6
+1116,11
@@
static inline bool is_zone_movable_page(const struct page *page)
{
return page_zonenum(page) == ZONE_MOVABLE;
}
+
+static inline bool folio_is_zone_movable(const struct folio *folio)
+{
+ return folio_zonenum(folio) == ZONE_MOVABLE;
+}
#endif
/*