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

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

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