OSDN Git Service

mm/damon/core: split out scheme quota adjustment logic into a new function
authorSeongJae Park <sj@kernel.org>
Wed, 26 Oct 2022 22:59:35 +0000 (22:59 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:01:25 +0000 (15:01 -0800)
commit898810e5ca54691f4e173f5ffc92bbce0335bc69
treebaa723b568b479eb61e6a54d17cbff21947d444b
parentd1cbbf621fc25950938be74a228ef518d05d93a1
mm/damon/core: split out scheme quota adjustment logic into a new function

DAMOS quota adjustment logic in 'kdamond_apply_schemes()', has some amount
of code, and the logic is not so straightforward.  Split it out to a new
function for better readability.

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