* [failures] mm-vmscan-simplify-the-nr-assignment-logic-for-pages-to-scan.patch removed from -mm tree
@ 2022-11-17 20:13 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-11-17 20:13 UTC (permalink / raw)
To: mm-commits, Chao.Xu9, amos.xuchao, akpm
The quilt patch titled
Subject: mm/vmscan: simplify the nr assignment logic for pages to scan
has been removed from the -mm tree. Its filename was
mm-vmscan-simplify-the-nr-assignment-logic-for-pages-to-scan.patch
This patch was dropped because it had testing failures
------------------------------------------------------
From: Chao Xu <amos.xuchao@gmail.com>
Subject: mm/vmscan: simplify the nr assignment logic for pages to scan
Date: Thu, 10 Nov 2022 19:31:30 +0800
By default the assignment logic of anonymouns or file inactive pages and
active pages to scan using the same duplicated code snippet. To simplify
the logic, merge the same part.
Link: https://lkml.kernel.org/r/20221110113130.284290-1-Chao.Xu9@zeekrlife.com
Signed-off-by: Chao Xu <Chao.Xu9@zeekrlife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/vmscan.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
--- a/mm/vmscan.c~mm-vmscan-simplify-the-nr-assignment-logic-for-pages-to-scan
+++ a/mm/vmscan.c
@@ -5969,15 +5969,11 @@ static void shrink_lruvec(struct lruvec
* Recalculate the other LRU scan count based on its original
* scan target and the percentage scanning already complete
*/
- lru = (lru == LRU_FILE) ? LRU_BASE : LRU_FILE;
- nr_scanned = targets[lru] - nr[lru];
- nr[lru] = targets[lru] * (100 - percentage) / 100;
- nr[lru] -= min(nr[lru], nr_scanned);
-
- lru += LRU_ACTIVE;
- nr_scanned = targets[lru] - nr[lru];
- nr[lru] = targets[lru] * (100 - percentage) / 100;
- nr[lru] -= min(nr[lru], nr_scanned);
+ for ( ; lru <= lru + LRU_ACTIVE; lru += LRU_ACTIVE) {
+ nr_scanned = targets[lru] - nr[lru];
+ nr[lru] = targets[lru] * (100 - percentage) / 100;
+ nr[lru] -= min(nr[lru], nr_scanned);
+ }
}
blk_finish_plug(&plug);
sc->nr_reclaimed += nr_reclaimed;
_
Patches currently in -mm which might be from amos.xuchao@gmail.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-17 20:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-17 20:13 [failures] mm-vmscan-simplify-the-nr-assignment-logic-for-pages-to-scan.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.