]> 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)
commitaf8ef6feb38d1a0612b75969a147802fa433c1de
treeba8ce58f67edb50e7dde9938405be004c9717a23
parent7c94788dc6e284ff9653d99413061ce1ede5c81d
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