mm/damon/sysfs-schemes: decouple from damos_wmark_metric
authorSeongJae Park <sj@kernel.org>
Sun, 22 Jun 2025 21:37:57 +0000 (14:37 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:21 +0000 (22:42 -0700)
commit041f54604f2c5fc3a363cdf0002389bb98b1e560
tree099f55f01ca4db889432d7bb5c90eac49d42ba25
parent2bbf41ee98565ca36d80975614b8dcfc32ea3c58
mm/damon/sysfs-schemes: decouple from damos_wmark_metric

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

Link: https://lkml.kernel.org/r/20250622213759.50930-4-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