mm/damon/sysfs: decouple from damon_ops_id
authorSeongJae Park <sj@kernel.org>
Sun, 22 Jun 2025 21:37:59 +0000 (14:37 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:21 +0000 (22:42 -0700)
commitd1600be2f68a6f79a1ea3993b7ab84fcbb824879
tree244b7732740f453c606c0eaf38d8caaee69c6b90
parenta39346daecc302e82a2c930c65f26519c106573e
mm/damon/sysfs: decouple from damon_ops_id

Decouple DAMON sysfs interface from damon_ops_id.  For this, define and
use new mm/damon/sysfs.c internal data structure that maps the user-space
keywords and damon_ops_id, instead of having the implicit and unflexible
array index rule.

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