]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fixup: mm/migrate: remove MIGRATEPAGE_UNMAP
authorDavid Hildenbrand <david@redhat.com>
Mon, 18 Aug 2025 11:26:05 +0000 (13:26 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:24:44 +0000 (17:24 -0700)
no need to pass "reason" to migrate_folio_unmap(), per Lance

Link: https://lkml.kernel.org/r/3bb725f8-28d7-4aa2-b75f-af40d5cab280@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Lance Yang <lance.yang@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate.c

index 4528f3f95e2eee5a9693bf445abe8f8f61a93c87..2ef467eae31df9bbecefd97ac2a7db8ccdd8dc9c 100644 (file)
@@ -1189,7 +1189,7 @@ static void migrate_folio_done(struct folio *src,
 static int migrate_folio_unmap(new_folio_t get_new_folio,
                free_folio_t put_new_folio, unsigned long private,
                struct folio *src, struct folio **dstp, enum migrate_mode mode,
-               enum migrate_reason reason, struct list_head *ret)
+               struct list_head *ret)
 {
        struct folio *dst;
        int rc = -EAGAIN;
@@ -1876,8 +1876,7 @@ static int migrate_pages_batch(struct list_head *from,
                        }
 
                        rc = migrate_folio_unmap(get_new_folio, put_new_folio,
-                                       private, folio, &dst, mode, reason,
-                                       ret_folios);
+                                       private, folio, &dst, mode, ret_folios);
                        /*
                         * The rules are:
                         *      0: folio will be put on unmap_folios list,