[RFC PATCH 7/9] mm/migrate: rename rmap_walk_arg folio
From: Huan Yang
Date: Thu Jul 24 2025 - 04:56:48 EST
The current naming of "folio" in rmap_walk_arg does not clearly reflect
the actual role of this parameter. This patch renames it to "src" to
distinguish it from the "folio" parameter in remove_migration_pte.
No functional change.
Signed-off-by: Huan Yang <link@xxxxxxxx>
---
mm/migrate.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/migrate.c b/mm/migrate.c
index a5a49af7857a..a5ea8fba2997 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -230,7 +230,7 @@ static bool try_to_map_unused_to_zeropage(struct page_vma_mapped_walk *pvmw,
}
struct rmap_walk_arg {
- struct folio *folio;
+ struct folio *src;
bool map_unused_to_zeropage;
};
@@ -241,7 +241,7 @@ static bool remove_migration_pte(struct folio *folio,
struct vm_area_struct *vma, unsigned long addr, void *arg)
{
struct rmap_walk_arg *rmap_walk_arg = arg;
- DEFINE_FOLIO_VMA_WALK(pvmw, rmap_walk_arg->folio, vma, addr, PVMW_SYNC | PVMW_MIGRATION);
+ DEFINE_FOLIO_VMA_WALK(pvmw, rmap_walk_arg->src, vma, addr, PVMW_SYNC | PVMW_MIGRATION);
while (page_vma_mapped_walk(&pvmw)) {
rmap_t rmap_flags = RMAP_NONE;
@@ -349,7 +349,7 @@ static bool remove_migration_pte(struct folio *folio,
void remove_migration_ptes(struct folio *src, struct folio *dst, int flags)
{
struct rmap_walk_arg rmap_walk_arg = {
- .folio = src,
+ .src = src,
.map_unused_to_zeropage = flags & RMP_USE_SHARED_ZEROPAGE,
};
--
2.34.1