]> www.infradead.org Git - users/hch/misc.git/commit
mm/damon/sysfs-schemes: record filters of which layer should be added to the given...
authorSeongJae Park <sj@kernel.org>
Wed, 5 Mar 2025 22:27:30 +0000 (14:27 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Mar 2025 05:06:49 +0000 (22:06 -0700)
commit9f643a9854df682548bbcdf68cbd89e74cbfd6dc
tree5c37678b1035f8b5d9efef8ecd0c708874d47bec
parentf7f0d88b7d6da29d2b073740aa130685f0e18609
mm/damon/sysfs-schemes: record filters of which layer should be added to the given filters directory

Unlike their name and assumed purposes, {core,ops}_filters DAMOS sysfs
directories are allowing installing any type of filters.  As a first step
for preventing such wrong installments, add information about filters that
handled by what layer should the installed to the given filters directory
in the DAMOS sysfs internal data structures.

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