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

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.