From: Lee Bruce <starzhangzsd@gmail.com>
To: akpm@linux-foundation.org
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Lee Bruce <starzhangzsd@gmail.com>
Subject: [PATCH] mm: migrate: remove unused parameter in migrate_vma_insert_page()
Date: Fri, 4 Dec 2020 19:54:15 +0800 [thread overview]
Message-ID: <CANubcdUwCAMuUyamG2dkWP=cqSR9MAS=tHLDc95kQkqU-rEnAg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1158 bytes --]
From 810f69c5438c66aafccf18ba8f43b99b64b85237 Mon Sep 17 00:00:00 2001
From: Stephen Zhang <starzhangzsd@gmail.com>
Date: Fri, 4 Dec 2020 16:32:38 +0800
Subject: [PATCH] mm: migrate: remove unused parameter in
migrate_vma_insert_page()
"dst" parameter to migrate_vma_insert_page() is not used anymore.
Signed-off-by: Stephen Zhang <starzhangzsd@gmail.com>
---
mm/migrate.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/mm/migrate.c b/mm/migrate.c
index 4385f2f..ee5e612 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -2894,8 +2894,7 @@ int migrate_vma_setup(struct migrate_vma *args)
static void migrate_vma_insert_page(struct migrate_vma *migrate,
unsigned long addr,
struct page *page,
- unsigned long *src,
- unsigned long *dst)
+ unsigned long *src)
{
struct vm_area_struct *vma = migrate->vma;
struct mm_struct *mm = vma->vm_mm;
@@ -3056,8 +3055,7 @@ void migrate_vma_pages(struct migrate_vma *migrate)
mmu_notifier_invalidate_range_start(&range);
}
migrate_vma_insert_page(migrate, addr, newpage,
- &migrate->src[i],
- &migrate->dst[i]);
+ &migrate->src[i]);
continue;
}
--
1.8.3.1
[-- Attachment #2: Type: text/html, Size: 1514 bytes --]
next reply other threads:[~2020-12-04 11:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-04 11:54 Lee Bruce [this message]
2020-12-04 13:02 ` [PATCH] mm: migrate: remove unused parameter in migrate_vma_insert_page() David Hildenbrand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANubcdUwCAMuUyamG2dkWP=cqSR9MAS=tHLDc95kQkqU-rEnAg@mail.gmail.com' \
--to=starzhangzsd@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).