[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240311204545.47097-5-sj@kernel.org>
Date: Mon, 11 Mar 2024 13:45:45 -0700
From: SeongJae Park <sj@...nel.org>
To:
Cc: honggyu.kim@...com,
hyeongtak.ji@...com,
kernel_team@...ynix.com,
SeongJae Park <sj@...nel.org>,
damon@...ts.linux.dev,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH v2 4/4] mm/damon/paddr: support DAMOS filter type YOUNG
DAMOS filter of type YOUNG is defined, but not yet implemented by any
DAMON operations set. Add the implementation to the DAMON operations
set for the physical address space, paddr.
Signed-off-by: SeongJae Park <sj@...nel.org>
---
mm/damon/paddr.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/mm/damon/paddr.c b/mm/damon/paddr.c
index 310b803c6277..5685ba485097 100644
--- a/mm/damon/paddr.c
+++ b/mm/damon/paddr.c
@@ -214,6 +214,11 @@ static bool __damos_pa_filter_out(struct damos_filter *filter,
matched = filter->memcg_id == mem_cgroup_id(memcg);
rcu_read_unlock();
break;
+ case DAMOS_FILTER_TYPE_YOUNG:
+ matched = damon_folio_young(folio);
+ if (matched)
+ damon_folio_mkold(folio);
+ break;
default:
break;
}
--
2.39.2
Powered by blists - more mailing lists