mm/damon/sysfs-schemes: return error when for attempts to install filters on wrong...
authorSeongJae Park <sj@kernel.org>
Wed, 5 Mar 2025 22:27:31 +0000 (14:27 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Mar 2025 05:06:49 +0000 (22:06 -0700)
commitae8fd5b6666b0d99f485748b2b2259de1a7458dc
tree7fd2036e5ca4d475e95fdcc6e4800be560b6c8c2
parent9f643a9854df682548bbcdf68cbd89e74cbfd6dc
mm/damon/sysfs-schemes: return error when for attempts to install filters on wrong sysfs directory

Return error if the user tries to install a DAMOS filter on DAMOS filters
sysfs directory that assumed to be used for filters that handled by a
DAMON layer that not same to that for the installing filter.

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