mm/damon/sysfs: split out kdamond-independent schemes stats update logic into a new...
authorSeongJae Park <sj@kernel.org>
Wed, 26 Oct 2022 22:59:40 +0000 (22:59 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:01:25 +0000 (15:01 -0800)
commit4acd715ff57fd05a481c64d074db68f2cf5711aa
tree0dd0b20b67a6e671c593959472286432f99c18ac
parentd332fe11debe69fee3de4c2d84fa0b6649678ad2
mm/damon/sysfs: split out kdamond-independent schemes stats update logic into a new function

'damon_sysfs_schemes_update_stats()' is coupled with both
damon_sysfs_kdamond and damon_sysfs_schemes.  It's a wide range of types
dependency.  It makes splitting the logics a little bit distracting.
Split the function so that each function is coupled with smaller range of
types.

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