]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/reclaim: deduplicate 'commit_inputs' handling
authorSeongJae Park <sj@kernel.org>
Mon, 6 Jun 2022 18:23:07 +0000 (18:23 +0000)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:38 +0000 (18:08 -0700)
commit919b02277baaf5e9b483967fd0eede22b51df0d1
treeba8ce58f67edb50e7dde9938405be004c9717a23
parentd07975db94cd8c40d407702e1c22129814d0b0eb
mm/damon/reclaim: deduplicate 'commit_inputs' handling

DAMON_RECLAIM's handling of 'commit_inputs' parameter is duplicated in
'after_aggregation()' and 'after_wmarks_check()' callbacks.  This commit
deduplicates the code for better maintenance.

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