mmzone: introduce folio_migratetype()
authorVishal Moola (Oracle) <vishal.moola@gmail.com>
Wed, 14 Jun 2023 02:13:09 +0000 (19:13 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:34 +0000 (16:19 -0700)
commit28fb54f6a2fd6cc471165cce1650a57dfbf49746
tree284fdd42b07827f7d3c42879fcfe37134aa7da8e
parent708ff4914dfb410761227a219c17c3e9dbd68c05
mmzone: introduce folio_migratetype()

Introduce folio_migratetype() as a folio equivalent for
get_pageblock_migratetype().  This function intends to return the
migratetype the folio is located in, hence the name choice.

Link: https://lkml.kernel.org/r/20230614021312.34085-3-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