]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/sysfs: prohibit multiple physical address space monitoring targets
authorSeongJae Park <sj@kernel.org>
Tue, 10 May 2022 01:20:55 +0000 (18:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:08 +0000 (07:20 -0700)
commit16f0e5727f0c12528aea31be0856e02eac80cfaf
treea3ee7e296cce65a76dca9c0e69701be24ebb5620
parenta7acb618b7918c9868c41502e363a0b9b7a026b4
mm/damon/sysfs: prohibit multiple physical address space monitoring targets

Having multiple targets for physical address space monitoring makes no
sense.  This commit prohibits such a ridiculous DAMON context setup my
making the DAMON context build function to check and return an error for
the case.

Link: https://lkml.kernel.org/r/20220429160606.127307-7-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs.c