]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/stat: deduplicate intervals_goal setup in damon_stat_build_ctx()
authorJaeJoon Jung <rgbi3307@gmail.com>
Tue, 16 Dec 2025 07:34:38 +0000 (23:34 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:24:46 +0000 (19:24 -0800)
commit9082f24bd3b700bfc98a24baf794cc7af8f6bcd0
treeb14c6194f32ea817b4606ae89163635e152859fe
parent804c26b961da295bd70c86a3c9dc4bea0b09de88
mm/damon/stat: deduplicate intervals_goal setup in damon_stat_build_ctx()

The damon_stat_build_ctx() function sets the values of intervals_goal
structure members.  These values are applied to damon_ctx in
damon_set_attrs().  However, It is resetting the values that were already
applied previously to the same values.  I suggest removing this code as it
constitutes duplicate execution.

Link: https://patch.msgid.link/20251206011716.7185-1-rgbi3307@gmail.com
Link: https://lkml.kernel.org/r/20251216073440.40891-1-sj@kernel.org
Signed-off-by: JaeJoon Jung <rgbi3307@gmail.com>
Reviewed-by: Enze Li <lienze@kylinos.cn>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/stat.c