mm/damon/core: split out scheme stat update logic into a new function
authorSeongJae Park <sj@kernel.org>
Wed, 26 Oct 2022 22:59:34 +0000 (22:59 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:01:24 +0000 (15:01 -0800)
commitd1cbbf621fc25950938be74a228ef518d05d93a1
treeb5d611dc35c9d9e168fd95b21318549cebad24a5
parente63a30c51f8400915db401c05d3c4db6743857e8
mm/damon/core: split out scheme stat update logic into a new function

The function for applying a given DAMON scheme action to a given DAMON
region, 'damos_apply_scheme()' is not quite short.  Make it better to read
by splitting out the stat update logic into a new function.

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