mm/damon/sysfs-schemes: implement core_filters and ops_filters directories
authorSeongJae Park <sj@kernel.org>
Wed, 5 Mar 2025 22:27:27 +0000 (14:27 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Mar 2025 05:06:48 +0000 (22:06 -0700)
commitdb2e76ceb40b85f5d6302b05f40dd99955b938f4
tree8a60f596eb7445686133b95c77eb523cc0d73bca
parentab71d2d301211a45420b1fb085072c79ea6a8027
mm/damon/sysfs-schemes: implement core_filters and ops_filters directories

Implement two DAMOS sysfs directories for managing core and operations
layer handled filters separately.  Those are named as 'core_filters' and
'ops_filters', and have files hierarchy same to 'filters'.  This commit is
only populating and cleaning up the directories, not really connecting the
files with DAMON.  Following changes will make the connections.

Link: https://lkml.kernel.org/r/20250305222733.59089-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs-schemes.c