blob: 0c4a92b658dd757069c5c1a9402ade089d67ab80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 3a77eabd8fda301a33e2b3106e69bd74a16f336a Mon Sep 17 00:00:00 2001
From: SeongJae Park <sj@kernel.org>
Date: Sun, 3 Sep 2023 05:02:44 +0000
Subject: [PATCH] mm/damon/core: add todo for DAMOS interval validation
Signed-off-by: SeongJae Park <sj@kernel.org>
---
mm/damon/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/damon/core.c b/mm/damon/core.c
index 4264bf32dc98..6ed0f1f9f477 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -1633,6 +1633,7 @@ static void kdamond_init_intervals_sis(struct damon_ctx *ctx)
ctx->next_ops_update_sis = ctx->attrs.ops_update_interval /
sample_interval;
+ /* todo: ensure apply_interval_us > sample_interval */
damon_for_each_scheme(scheme, ctx) {
apply_interval = scheme->apply_interval_us ?
scheme->apply_interval_us : ctx->attrs.aggr_interval;
--
2.39.2
|