From: sashiko-bot@kernel.org
To: "Kaitao Cheng" <kaitao.cheng@linux.dev>
Cc: hannes@cmpxchg.org, mkoutny@suse.com, damon@lists.linux.dev,
tj@kernel.org
Subject: Re: [PATCH v3 3/7] mm: Use mutable list iterators
Date: Mon, 22 Jun 2026 04:57:53 +0000 [thread overview]
Message-ID: <20260622045753.CDF281F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260622041529.30643-1-kaitao.cheng@linux.dev>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] An unused `folio2` pointer was mistakenly added to `struct rmap_walk_arg`.
--
commit 8a79df314e3109d54ebea51144ac490e11160cb4
Author: Kaitao Cheng <chengkaitao@kylinos.cn>
mm: Use mutable list iterators
This patch mechanically converts mm users of safe list iterators to new mutable
helpers. It drops temporary cursor variables that are no longer explicitly
needed by the calling loops.
> diff --git a/mm/migrate.c b/mm/migrate.c
> index d9b23909d716c..acc7925d1d1b8 100644
> --- a/mm/migrate.c
> +++ b/mm/migrate.c
[ ... ]
> @@ -336,7 +335,7 @@ static bool try_to_map_unused_to_zeropage(struct page_vma_mapped_walk *pvmw,
> }
>
> struct rmap_walk_arg {
> - struct folio *folio;
> + struct folio *folio, *folio2;
> bool map_unused_to_zeropage;
> };
[Severity: Low]
Is folio2 actually used anywhere in struct rmap_walk_arg? It looks like this
was mistakenly added as a leftover artifact of a mechanical search-and-replace
when cleaning up the local cursor variables in nearby functions.
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260622040533.29824-1-kaitao.cheng@linux.dev?part=3
next prev parent reply other threads:[~2026-06-22 4:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-22 4:05 [PATCH v3 0/7] Prepare mutable list iterators to cache cursor state Kaitao Cheng
2026-06-22 4:05 ` [PATCH v3 1/7] list: Add mutable iterator variants Kaitao Cheng
2026-06-22 8:42 ` David Laight
2026-06-22 8:51 ` Christian König
2026-06-22 4:05 ` [PATCH v3 2/7] llist: " Kaitao Cheng
2026-06-22 4:15 ` [PATCH v3 3/7] mm: Use mutable list iterators Kaitao Cheng
2026-06-22 4:57 ` sashiko-bot [this message]
2026-06-22 5:28 ` [PATCH v3 0/7] Prepare mutable list iterators to cache cursor state Alexei Starovoitov
2026-06-22 6:15 ` Kaitao Cheng
2026-06-22 10:46 ` Andy Shevchenko
2026-06-22 11:27 ` David Hildenbrand (Arm)
2026-06-22 8:37 ` Jani Nikula
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=20260622045753.CDF281F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=damon@lists.linux.dev \
--cc=hannes@cmpxchg.org \
--cc=kaitao.cheng@linux.dev \
--cc=mkoutny@suse.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tj@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox