aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/shrinker_debug.c
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2022-06-06 18:23:09 +0000
committerakpm <akpm@linux-foundation.org>2022-07-03 18:08:38 -0700
commitf943e7e3a4c6202eeb8b3c4bf2889778450eaf7e (patch)
treee2d369ec9a50641bb80cab373990c0bc0ca554f1 /mm/shrinker_debug.c
parentmm/damon/sysfs: deduplicate inputs applying (diff)
downloadwireguard-linux-f943e7e3a4c6202eeb8b3c4bf2889778450eaf7e.tar.xz
wireguard-linux-f943e7e3a4c6202eeb8b3c4bf2889778450eaf7e.zip
mm/damon/reclaim: make 'enabled' checking timer simpler
DAMON_RECLAIM's 'enabled' parameter store callback ('enabled_store()') schedules the parameter check timer ('damon_reclaim_timer') if the parameter is set as 'Y'. Then, the timer schedules itself to check if user has set the parameter as 'N'. It's unnecessarily complex. This commit makes it simpler by making the parameter store callback to schedule the timer regardless of the parameter value and disabling the timer's self scheduling. Link: https://lkml.kernel.org/r/20220606182310.48781-6-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>
Diffstat (limited to 'mm/shrinker_debug.c')
0 files changed, 0 insertions, 0 deletions