]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/sysfs: implement refresh_ms file internal work
authorSeongJae Park <sj@kernel.org>
Thu, 17 Jul 2025 05:54:46 +0000 (22:54 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 25 Jul 2025 02:12:33 +0000 (19:12 -0700)
commitd809a7c64ba8229286b333c0cba03b1cdfb50238
tree42b38b28508444cdc9d15a83da5d1227b035c90f
parentb907494768e5390ee8282dc138d9d6ba9b971af1
mm/damon/sysfs: implement refresh_ms file internal work

Only minimum file operations for refresh_ms file is implemented.  Further
implement its designed behavior, the periodic essential files content
update, using repeat mode damon_call().

If non-zero value is written to the file, update DAMON sysfs files for
auto-tuned monitoring intervals, DAMOS stats, and auto-tuned DAMOS quota
values, which are essential to be monitored in most DAMON use cases.  The
user-written non-zero value becomes the time delay between the update.  If
zero is written to the file, the periodic refresh is disabled.

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