]> www.infradead.org Git - users/jedix/linux-maple.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)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:02 +0000 (20:15 -0400)
commitb9480e06ba1309df3441c808caefb860b16584c8
treec4eef5daa58c9c9edb874e79223af6d80d942b12
parent4c89bb21c90359bf93d74a7d39f5e531b912b8e1
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