Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baoquan He <baoquan.he@linux.dev>
To: Chuanhua Han <hanchuanhua802@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Kairui Song <kasong@tencent.com>,
	Axel Rasmussen <axelrasmussen@google.com>,
	Baolin Wang <baolin.wang@linux.alibaba.com>,
	Barry Song <baohua@kernel.org>,
	linux-mm@kvack.org, Michal Hocko <mhocko@kernel.org>,
	Qi Zheng <qi.zheng@linux.dev>,
	Shakeel Butt <shakeel.butt@linux.dev>,
	Wei Xu <weixugc@google.com>, Yuanchu Xie <yuanchu@google.com>,
	Chuanhua Han <hanchuanhua@xiaomi.com>
Subject: Re: [PATCH v2] mm/mglru: remove the unused scan_control argument of isolate_folio()
Date: Thu, 3 Dec 2026 10:39:40 +0800	[thread overview]
Message-ID: <axDWbENCQv-h8gSp@fedora> (raw)
In-Reply-To: <20261203022545.505520-1-hanchuanhua802@gmail.com>

On 12/03/26 at 10:25am, Chuanhua Han wrote:
> From: Chuanhua Han <hanchuanhua@xiaomi.com>
> 
> Since commit acd22fbb9f47 ("mm/mglru: remove redundant swap constrained
> check upon isolation") removed the sc->gfp_mask check, isolate_folio()
> no longer uses its scan_control argument. Remove it.
> 
> No functional change.
> 
> Signed-off-by: Chuanhua Han <hanchuanhua@xiaomi.com>
> Reviewed-by: Barry Song <baohua@kernel.org>
> ---
> v2:
~~~~~
v1->v2:
>  - Fix the From/Signed-off-by mismatch (Barry, Andrew)
>  - Add Reviewed-by from Barry
> v1: https://lore.kernel.org/linux-mm/20261202135055.5703-1-hanchuanhua@xiaomi.com/
> 
>  mm/vmscan.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

LGTM,

Reviewed-by: Baoquan He <baoquan.he@linux.dev>

> 
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 99cb209797b4..1bb6bcfb041d 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -4798,7 +4798,7 @@ static bool sort_folio(struct lruvec *lruvec, struct folio *folio, struct scan_c
>  	return false;
>  }
>  
> -static bool isolate_folio(struct lruvec *lruvec, struct folio *folio, struct scan_control *sc)
> +static bool isolate_folio(struct lruvec *lruvec, struct folio *folio)
>  {
>  	bool success;
>  
> @@ -4894,7 +4894,7 @@ static int scan_folios(unsigned long nr_to_scan, struct lruvec *lruvec,
>  			scanned += delta;
>  			if (sort_folio(lruvec, folio, sc, gen, max_gen, tier))
>  				sorted += delta;
> -			else if (isolate_folio(lruvec, folio, sc)) {
> +			else if (isolate_folio(lruvec, folio)) {
>  				list_add(&folio->lru, list);
>  				isolated += delta;
>  			} else {
> -- 
> 2.34.1
> 


      parent reply	other threads:[~2026-12-03  2:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  2:25 [PATCH v2] mm/mglru: remove the unused scan_control argument of isolate_folio() Chuanhua Han
2026-12-03  2:31 ` Qi Zheng
2026-12-03  2:39 ` Baoquan He [this message]

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=axDWbENCQv-h8gSp@fedora \
    --to=baoquan.he@linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=axelrasmussen@google.com \
    --cc=baohua@kernel.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=hanchuanhua802@gmail.com \
    --cc=hanchuanhua@xiaomi.com \
    --cc=hannes@cmpxchg.org \
    --cc=kasong@tencent.com \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=qi.zheng@linux.dev \
    --cc=shakeel.butt@linux.dev \
    --cc=weixugc@google.com \
    --cc=yuanchu@google.com \
    /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