mm/migrate: add folio_movable_ops()
authorVishal Moola (Oracle) <vishal.moola@gmail.com>
Mon, 30 Jan 2023 21:43:50 +0000 (13:43 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 13 Feb 2023 23:54:31 +0000 (15:54 -0800)
commitda707a6d184a8a6ef0b756c3ba49888fec223793
treed196661949ae0c9ee66743a65ed1aeba030c0a0e
parent3c1ea2c729ef8ef07bcb80d01ab2ead45b3406dd
mm/migrate: add folio_movable_ops()

folio_movable_ops() does the same as page_movable_ops() except uses folios
instead of pages.  This function will help make folio conversions in
migrate.c more readable.

Link: https://lkml.kernel.org/r/20230130214352.40538-3-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/migrate.h
mm/migrate.c