mm/damon/sysfs-schemes: implement filter directory
authorSeongJae Park <sj@kernel.org>
Mon, 5 Dec 2022 23:08:25 +0000 (23:08 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:43 +0000 (17:12 -0800)
commit7ee161f18b5da5170b5d6a51aace49d312099128
treebcd22a73c7c87532e7a7ae217185ed8d78e2e3bf
parentac35264b9e8807f019f36e7dbc640b66fd43a865
mm/damon/sysfs-schemes: implement filter directory

Implement DAMOS filter directory which will be located under the filters
directory.  The directory provides three files, namely type, matching, and
memcg_path.  'type' and 'matching' will be directly connected to the
fields of 'struct damos_filter' having same name.  'memcg_path' will
receive the path of the memory cgroup of the interest and later converted
to memcg id when it's committed.

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