* + mm-ksm-remove-unused-parameter-from-remove_trailing_rmap_items.patch added to -mm tree
@ 2021-03-31 4:50 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-03-31 4:50 UTC (permalink / raw)
To: cy.fan, hughd, mm-commits
The patch titled
Subject: mm/ksm: remove unused parameter from remove_trailing_rmap_items()
has been added to the -mm tree. Its filename is
mm-ksm-remove-unused-parameter-from-remove_trailing_rmap_items.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-ksm-remove-unused-parameter-from-remove_trailing_rmap_items.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-ksm-remove-unused-parameter-from-remove_trailing_rmap_items.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Chengyang Fan <cy.fan@huawei.com>
Subject: mm/ksm: remove unused parameter from remove_trailing_rmap_items()
Since commit 6514d511dbe5 ("ksm: singly-linked rmap_list") was merged,
remove_trailing_rmap_items() doesn't use the 'mm_slot' parameter. So
remove it, and update caller accordingly.
Link: https://lkml.kernel.org/r/20210330121320.1693474-1-cy.fan@huawei.com
Signed-off-by: Chengyang Fan <cy.fan@huawei.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/ksm.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
--- a/mm/ksm.c~mm-ksm-remove-unused-parameter-from-remove_trailing_rmap_items
+++ a/mm/ksm.c
@@ -815,8 +815,7 @@ out:
cond_resched(); /* we're called from many long loops */
}
-static void remove_trailing_rmap_items(struct mm_slot *mm_slot,
- struct rmap_item **rmap_list)
+static void remove_trailing_rmap_items(struct rmap_item **rmap_list)
{
while (*rmap_list) {
struct rmap_item *rmap_item = *rmap_list;
@@ -987,7 +986,7 @@ static int unmerge_and_remove_all_rmap_i
goto error;
}
- remove_trailing_rmap_items(mm_slot, &mm_slot->rmap_list);
+ remove_trailing_rmap_items(&mm_slot->rmap_list);
mmap_read_unlock(mm);
spin_lock(&ksm_mmlist_lock);
@@ -2333,7 +2332,7 @@ next_mm:
* Nuke all the rmap_items that are above this current rmap:
* because there were no VM_MERGEABLE vmas with such addresses.
*/
- remove_trailing_rmap_items(slot, ksm_scan.rmap_list);
+ remove_trailing_rmap_items(ksm_scan.rmap_list);
spin_lock(&ksm_mmlist_lock);
ksm_scan.mm_slot = list_entry(slot->mm_list.next,
_
Patches currently in -mm which might be from cy.fan@huawei.com are
mm-ksm-remove-unused-parameter-from-remove_trailing_rmap_items.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-31 4:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 4:50 + mm-ksm-remove-unused-parameter-from-remove_trailing_rmap_items.patch added to -mm tree akpm
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).