]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f06664c3e6751e7b9f2e4ed80b1b1ab905e2f56
tree19e7991d214867c9fa95ac20684e04bee551ec3b
parent9f60aee5328371a9fedbd0c329e0bc306688b817
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