From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, Chao.Xu9@zeekrlife.com,
amos.xuchao@gmail.com, akpm@linux-foundation.org
Subject: [failures] mm-vmscan-simplify-the-nr-assignment-logic-for-pages-to-scan.patch removed from -mm tree
Date: Thu, 17 Nov 2022 12:13:23 -0800 [thread overview]
Message-ID: <20221117201324.09D7FC433C1@smtp.kernel.org> (raw)
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
reply other threads:[~2022-11-17 20:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20221117201324.09D7FC433C1@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=Chao.Xu9@zeekrlife.com \
--cc=amos.xuchao@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.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 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.