diff options
author | SeongJae Park <sj@kernel.org> | 2022-10-27 00:59:38 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-01 00:01:25 +0100 |
commit | 39240595917ec0c4f71d7b9dd7909790715968b5 (patch) | |
tree | 9e5bc81859c5a0fba6b1e8ddd6e5897719dbef6d /mm/damon/Makefile | |
parent | mm/damon/sysfs: remove parameters of damon_sysfs_region_alloc() (diff) | |
download | linux-39240595917ec0c4f71d7b9dd7909790715968b5.tar.xz linux-39240595917ec0c4f71d7b9dd7909790715968b5.zip |
mm/damon/sysfs: move sysfs_lock to common module
DAMON sysfs interface is implemented in a single file, sysfs.c, which has
about 2,800 lines of code. As the interface is hierarchical and some of
the code can be reused by different hierarchies, it would make more sense
to split out the implementation into common parts and different parts in
multiple files. As the beginning of the work, create files for common
code and move the global mutex for directories modifications protection
into the new file.
Link: https://lkml.kernel.org/r/20221026225943.100429-8-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/damon/Makefile')
-rw-r--r-- | mm/damon/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/damon/Makefile b/mm/damon/Makefile index 3e6b8ad73858..f8d535a6253b 100644 --- a/mm/damon/Makefile +++ b/mm/damon/Makefile @@ -3,7 +3,7 @@ obj-y := core.o obj-$(CONFIG_DAMON_VADDR) += ops-common.o vaddr.o obj-$(CONFIG_DAMON_PADDR) += ops-common.o paddr.o -obj-$(CONFIG_DAMON_SYSFS) += sysfs.o +obj-$(CONFIG_DAMON_SYSFS) += sysfs-common.o sysfs.o obj-$(CONFIG_DAMON_DBGFS) += dbgfs.o obj-$(CONFIG_DAMON_RECLAIM) += reclaim.o obj-$(CONFIG_DAMON_LRU_SORT) += lru_sort.o |