mm/damon/sysfs: use damon_call() for update_schemes_effective_quotas
authorSeongJae Park <sj@kernel.org>
Fri, 3 Jan 2025 17:43:56 +0000 (09:43 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:25 +0000 (20:22 -0800)
commit9a5aa3349b9428ae451b22c331d0d9a9cfc7ac90
treea627c57ed93c1dc50418ece75aa9d91455f37f1b
parent60d2c527bd3a44faa848a7feb3d29307e28cc8cb
mm/damon/sysfs: use damon_call() for update_schemes_effective_quotas

DAMON sysfs interface uses damon_callback with its own synchronization
facility to handle update_schemes_effective_quotas command.  But
damon_call() can support the use case without the additional
synchronizations.  Convert the code to use damon_call() instead.

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