mm/damon/sysfs: implement a kdamond command for updating schemes' effective quotas
authorSeongJae Park <sj@kernel.org>
Mon, 19 Feb 2024 19:44:14 +0000 (11:44 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 24 Feb 2024 01:48:26 +0000 (17:48 -0800)
commitc71f8a710c39f8138bdd6abcd922789ebffa2de3
tree04906769058bfcb390be29d474c620caacec8d93
parent6813131578ecd830c3be9b8a26bc62a2d2027610
mm/damon/sysfs: implement a kdamond command for updating schemes' effective quotas

Implement yet another kdamond 'state' file input command, namely
'update_schemes_effective_quotas'.  If it is written, the
'effective_bytes' files of the kdamond will be updated to provide the
current effective size quota of each scheme in bytes.

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