All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/mglru: remove the unused scan_control argument of isolate_folio()
@ 2026-12-02 13:50 Chuanhua Han
  2026-12-02 20:37 ` + mm-mglru-remove-the-unused-scan_control-argument-of-isolate_folio.patch added to mm-new branch Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Chuanhua Han @ 2026-12-02 13:50 UTC (permalink / raw)
  To: Andrew Morton, Johannes Weiner, Kairui Song
  Cc: Axel Rasmussen, Baolin Wang, Baoquan He, Barry Song, linux-mm,
	Michal Hocko, Qi Zheng, Shakeel Butt, Wei Xu, Yuanchu Xie,
	Chuanhua Han

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>
---
 mm/vmscan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* + mm-mglru-remove-the-unused-scan_control-argument-of-isolate_folio.patch added to mm-new branch
  2026-12-02 13:50 [PATCH] mm/mglru: remove the unused scan_control argument of isolate_folio() Chuanhua Han
@ 2026-12-02 20:37 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2026-12-02 20:37 UTC (permalink / raw)
  To: mm-commits, yuanchu, weixugc, shakeel.butt, qi.zheng, mhocko,
	kasong, hannes, hanchuanhua, baoquan.he, baolin.wang, baohua,
	axelrasmussen, hanchuanhua802, akpm


The patch titled
     Subject: mm/mglru: remove the unused scan_control argument of isolate_folio()
has been added to the -mm mm-new branch.  Its filename is
     mm-mglru-remove-the-unused-scan_control-argument-of-isolate_folio.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-mglru-remove-the-unused-scan_control-argument-of-isolate_folio.patch

This patch will later appear in the mm-new branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews.  Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.

The mm-new branch of mm.git is not included in linux-next

If a few days of testing in mm-new is successful, the patch will me moved
into mm.git's mm-unstable branch, which is included in linux-next

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Chuanhua Han <hanchuanhua802@gmail.com>
Subject: mm/mglru: remove the unused scan_control argument of isolate_folio()
Date: Wed,  2 Dec 2026 21:50:55 +0800

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.

Link: https://patch.msgid.link/20261202135055.5703-1-hanchuanhua@xiaomi.com
Signed-off-by: Chuanhua Han <hanchuanhua@xiaomi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kairui Song <kasong@tencent.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Baoquan He <baoquan.he@linux.dev>
Cc: Barry Song <baohua@kernel.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Qi Zheng <qi.zheng@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Wei Xu <weixugc@google.com>
Cc: Yuanchu Xie <yuanchu@google.com>

 mm/vmscan.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/mm/vmscan.c~mm-mglru-remove-the-unused-scan_control-argument-of-isolate_folio
+++ a/mm/vmscan.c
@@ -5062,7 +5062,7 @@ static bool sort_folio(struct lruvec *lr
 	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;
 
@@ -5154,7 +5154,7 @@ static int scan_folios(unsigned long nr_
 			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 {
_

Patches currently in -mm which might be from hanchuanhua802@gmail.com are

mm-mglru-remove-the-unused-scan_control-argument-of-isolate_folio.patch


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-02 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 13:50 [PATCH] mm/mglru: remove the unused scan_control argument of isolate_folio() Chuanhua Han
2026-12-02 20:37 ` + mm-mglru-remove-the-unused-scan_control-argument-of-isolate_folio.patch added to mm-new branch 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.