]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm/damon/core: let goal specified with only target and current values
authorSeongJae Park <sj@kernel.org>
Mon, 19 Feb 2024 19:44:22 +0000 (11:44 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 24 Feb 2024 01:48:28 +0000 (17:48 -0800)
commit06ba5b309ed870cf1a0fedc611d0e7fbb6425a2d
treeb02ec64e89428787cf49dc99b81e12c10c5e5ef6
parent89d347a545a704e0bd4fc61f9aea956d71bc72d2
mm/damon/core: let goal specified with only target and current values

DAMOS quota auto-tuning feature let users to set the goal by providing a
function for getting the current score of the tuned quota.  It allows
flexible goal setup, but only simple user-set quota is currently being
used.  As a result, the only user of the DAMOS quota auto-tuning is using
a silly void pointer casting based score value passing function.  Simplify
the interface and the user code by letting user directly set the target
and the current value.

Link: https://lkml.kernel.org/r/20240219194431.159606-12-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c
mm/damon/sysfs-schemes.c