Skip to content

Commit 708ff49

Browse files
VMoolaakpm00
authored andcommitted
mmzone: introduce folio_is_zone_movable()
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/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Vishal Moola (Oracle) <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 452c03f commit 708ff49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/mmzone.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,11 @@ static inline bool is_zone_movable_page(const struct page *page)
11161116
{
11171117
return page_zonenum(page) == ZONE_MOVABLE;
11181118
}
1119+
1120+
static inline bool folio_is_zone_movable(const struct folio *folio)
1121+
{
1122+
return folio_zonenum(folio) == ZONE_MOVABLE;
1123+
}
11191124
#endif
11201125

11211126
/*

0 commit comments

Comments
 (0)