* [PATCH v2] mm/mglru: remove the unused scan_control argument of isolate_folio()
@ 2026-12-03 2:25 Chuanhua Han
2026-12-03 2:31 ` Qi Zheng
2026-12-03 2:39 ` Baoquan He
0 siblings, 2 replies; 3+ messages in thread
From: Chuanhua Han @ 2026-12-03 2:25 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, Chuanhua Han
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:
- 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(-)
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] 3+ messages in thread
* Re: [PATCH v2] mm/mglru: remove the unused scan_control argument of isolate_folio()
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
1 sibling, 0 replies; 3+ messages in thread
From: Qi Zheng @ 2026-12-03 2:31 UTC (permalink / raw)
To: Chuanhua Han, Andrew Morton, Johannes Weiner, Kairui Song
Cc: Axel Rasmussen, Baolin Wang, Baoquan He, Barry Song, linux-mm,
Michal Hocko, Shakeel Butt, Wei Xu, Yuanchu Xie, Chuanhua Han
On 12/3/26 10:25 AM, 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:
> - 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(-)
>
Reviewed-by: Qi Zheng <qi.zheng@linux.dev>
Thanks,
Qi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] mm/mglru: remove the unused scan_control argument of isolate_folio()
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
1 sibling, 0 replies; 3+ messages in thread
From: Baoquan He @ 2026-12-03 2:39 UTC (permalink / raw)
To: Chuanhua Han
Cc: Andrew Morton, Johannes Weiner, Kairui Song, Axel Rasmussen,
Baolin Wang, Barry Song, linux-mm, Michal Hocko, Qi Zheng,
Shakeel Butt, Wei Xu, Yuanchu Xie, Chuanhua Han
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-03 2:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.