]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/sysfs-schemes: decouple from damos_quota_goal_metric
authorSeongJae Park <sj@kernel.org>
Sun, 22 Jun 2025 21:37:55 +0000 (14:37 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:20 +0000 (22:42 -0700)
commitb7482f91ea1d3ff3288c3678c37dcfe70124d26c
tree844ecb8b9a3b6821887bd31b0970d31cce4b6ab3
parent59305202c67fea50378dcad0cc199dbc13a0e99a
mm/damon/sysfs-schemes: decouple from damos_quota_goal_metric

Patch series "mm/damon: decouple sysfs from core".

DAMON sysfs interface is coupled with core layer.  It maintains some of
its keywords arrays be synchronized with matching DAMON core API enums.
It is unnecessary coupling that makes separated changes for different
layers difficult.  Decouple the layers by introducing new data structure
for the mappings on DAMON sysfs interface.

This patch (of 5):

Decouple DAMOS sysfs interface from damos_quota_goal_metric.  For this,
define and use new sysfs-schemes internal data structure that maps the
user-space keywords and damos_quota_goal_metric, instead of having the
implicit and unflexible array index rule.

Link: https://lkml.kernel.org/r/20250622213759.50930-1-sj@kernel.org
Link: https://lkml.kernel.org/r/20250622213759.50930-2-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs-schemes.c