mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
3924059591
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>
10 lines
328 B
Makefile
10 lines
328 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
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-common.o sysfs.o
|
|
obj-$(CONFIG_DAMON_DBGFS) += dbgfs.o
|
|
obj-$(CONFIG_DAMON_RECLAIM) += reclaim.o
|
|
obj-$(CONFIG_DAMON_LRU_SORT) += lru_sort.o
|