Skip to content

Commit 97144ce

Browse files
Vern Haoakpm00
authored andcommitted
mm/vmscan: use folio_migratetype() instead of get_pageblock_migratetype()
In skip_cma(), we can use folio_migratetype() to replace get_pageblock_migratetype(). Link: https://lkml.kernel.org/r/20230825075735.52436-1-user@VERNHAO-MC1 Signed-off-by: Vern Hao <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Cc: Zhaoyang Huang <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 80e4a76 commit 97144ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/vmscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ static bool skip_cma(struct folio *folio, struct scan_control *sc)
22712271
{
22722272
return !current_is_kswapd() &&
22732273
gfp_migratetype(sc->gfp_mask) != MIGRATE_MOVABLE &&
2274-
get_pageblock_migratetype(&folio->page) == MIGRATE_CMA;
2274+
folio_migratetype(folio) == MIGRATE_CMA;
22752275
}
22762276
#else
22772277
static bool skip_cma(struct folio *folio, struct scan_control *sc)

0 commit comments

Comments
 (0)