mm/damon/sysfs: move targets setup code to a separated function
authorSeongJae Park <sj@kernel.org>
Tue, 10 May 2022 01:20:55 +0000 (18:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:08 +0000 (07:20 -0700)
commit74bd8b7d2f8e7014dc34d6c5f51c629afdf822cb
treeb0d3832ec3ef5417e93c945ac0e102907ea3ef13
parent0a890a9faaad3bfb7fa4087c4d35e2ea3527013b
mm/damon/sysfs: move targets setup code to a separated function

This commit separates DAMON sysfs interface's monitoring context targets
setup code to a new function for better readability.

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