mm/damon/core: factor out 'damos_quota' private fileds initialization
authorSeongJae Park <sj@kernel.org>
Tue, 13 Sep 2022 17:44:31 +0000 (17:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:10 +0000 (14:03 -0700)
commit70e0c1d1bf945328915f52f7132b2d6ee8f25d46
tree19e7991d214867c9fa95ac20684e04bee551ec3b
parent02f17037fc6e38ca1c00ac87a112372a3867ba45
mm/damon/core: factor out 'damos_quota' private fileds initialization

The 'struct damos' creation function, 'damon_new_scheme()', does
initialization of private fileds of 'struct damos_quota' in it.  As its
verbose and makes the function unnecessarily long, this commit factors it
out to separate function.

Link: https://lkml.kernel.org/r/20220913174449.50645-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