blob: a648f1ef1fd84bf77156e738e875f3cb78b39a6a (
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 10669e8663f14a1dbcdd6756f7bf0b4d32c17002 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 31ac8e4b11897..d2505528bd6d3 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -1634,6 +1634,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
|