mm/damon/sysfs-schemes: decouple from damos_action
authorSeongJae Park <sj@kernel.org>
Sun, 22 Jun 2025 21:37:56 +0000 (14:37 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:20 +0000 (22:42 -0700)
commit2bbf41ee98565ca36d80975614b8dcfc32ea3c58
tree4aaee15b6ac78a6d7357c2c988148029a01709f6
parentb7482f91ea1d3ff3288c3678c37dcfe70124d26c
mm/damon/sysfs-schemes: decouple from damos_action

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

[akpm@linux-foundation.org: make damos_sysfs_action_names static]
  Closes: https://lore.kernel.org/oe-kbuild-all/202506271655.b8yfEZIT-lkp@intel.com/
Link: https://lkml.kernel.org/r/20250622213759.50930-3-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