* [merged] mm-swapfilec-simplify-the-calculation-of-n_goal.patch removed from -mm tree
@ 2020-06-02 21:40 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-06-02 21:40 UTC (permalink / raw)
To: akpm, hughd, mm-commits, richard.weiyang
The patch titled
Subject: mm/swapfile.c: simplify the calculation of n_goal
has been removed from the -mm tree. Its filename was
mm-swapfilec-simplify-the-calculation-of-n_goal.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Wei Yang <richard.weiyang@gmail.com>
Subject: mm/swapfile.c: simplify the calculation of n_goal
Use min3() to simplify the comparison and make it more self-explaining.
Link: http://lkml.kernel.org/r/20200325220309.9803-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/swapfile.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
--- a/mm/swapfile.c~mm-swapfilec-simplify-the-calculation-of-n_goal
+++ a/mm/swapfile.c
@@ -994,11 +994,7 @@ int get_swap_pages(int n_goal, swp_entry
if (avail_pgs <= 0)
goto noswap;
- if (n_goal > SWAP_BATCH)
- n_goal = SWAP_BATCH;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-02 21:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 21:40 [merged] mm-swapfilec-simplify-the-calculation-of-n_goal.patch removed from -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).