OSDN Git Service

mm/damon/sysfs: move unsigned long range directory to common module
authorSeongJae Park <sj@kernel.org>
Wed, 26 Oct 2022 22:59:39 +0000 (22:59 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:01:25 +0000 (15:01 -0800)
commitd332fe11debe69fee3de4c2d84fa0b6649678ad2
tree393936911e6c273f31f59527841c2667841ac338
parent39240595917ec0c4f71d7b9dd7909790715968b5
mm/damon/sysfs: move unsigned long range directory to common module

The implementation of unsigned long type range directories can be reused
by multiple DAMON sysfs directories including those for DAMON-based
Operation Schemes and the range of number of monitoring regions.  Move the
code into the files for DAMON sysfs common logics.

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