* + mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots.patch added to -mm tree
@ 2020-04-18 22:13 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-04-18 22:13 UTC (permalink / raw)
To: hughd, mm-commits, richard.weiyang
The patch titled
Subject: mm/swapfile.c: remove the extra check in scan_swap_map_slots()
has been added to the -mm tree. Its filename is
mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots.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: Wei Yang <richard.weiyang@gmail.com>
Subject: mm/swapfile.c: remove the extra check in scan_swap_map_slots()
scan_swap_map_slots() is only called by scan_swap_map() and
get_swap_pages(). Both ensure nr would not exceed SWAP_BATCH.
Just remove it.
Link: http://lkml.kernel.org/r/20200325220309.9803-2-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/swapfile.c | 3 ---
1 file changed, 3 deletions(-)
--- a/mm/swapfile.c~mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots
+++ a/mm/swapfile.c
@@ -740,9 +740,6 @@ static int scan_swap_map_slots(struct sw
int latency_ration = LATENCY_LIMIT;
int n_ret = 0;
- if (nr > SWAP_BATCH)
- nr = SWAP_BATCH;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-18 22:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-18 22:13 + mm-swapfilec-remove-the-extra-check-in-scan_swap_map_slots.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).