summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorVishal Moola (Oracle) <vishal.moola@gmail.com>2023-01-30 13:43:50 -0800
committerAndrew Morton <akpm@linux-foundation.org>2023-02-13 15:54:31 -0800
commitda707a6d184a8a6ef0b756c3ba49888fec223793 (patch)
treed196661949ae0c9ee66743a65ed1aeba030c0a0e /mm
parent3c1ea2c729ef8ef07bcb80d01ab2ead45b3406dd (diff)
downloadlinux-stable-da707a6d184a8a6ef0b756c3ba49888fec223793.tar.gz
linux-stable-da707a6d184a8a6ef0b756c3ba49888fec223793.tar.bz2
linux-stable-da707a6d184a8a6ef0b756c3ba49888fec223793.zip
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/migrate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index c09872cf41b7..d2b1167329b9 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -990,7 +990,7 @@ static int move_to_new_folio(struct folio *dst, struct folio *src,
goto out;
}
- mops = page_movable_ops(&src->page);
+ mops = folio_movable_ops(src);
rc = mops->migrate_page(&dst->page, &src->page, mode);
WARN_ON_ONCE(rc == MIGRATEPAGE_SUCCESS &&
!folio_test_isolated(src));