mm/damon/reclaim: support online inputs update
authorSeongJae Park <sj@kernel.org>
Tue, 10 May 2022 01:20:56 +0000 (18:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:09 +0000 (07:20 -0700)
commite035c280f6dfebf0cf7462a03d83294ca1b8c4e3
tree05cd79509896e5fbaae7cd63521a87e468ec9e7b
parentadc286e6bdd39e94f243cb109d73fb422368acd5
mm/damon/reclaim: support online inputs update

DAMON_RECLAIM reads the user input parameters only when it starts.  To
allow more efficient online tuning, this commit implements a new input
parameter called 'commit_inputs'.  Writing true to the parameter makes
DAMON_RECLAIM reads the input parameters again.

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