summaryrefslogtreecommitdiffstats
path: root/mm/damon/Makefile
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2022-10-27 00:59:42 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-12-01 00:01:26 +0100
commit7ae2c17f53d5054d1fe5c1a103ad46068034617d (patch)
tree8f6fb2b8ce5811dd56dbb17592975acb8796dd6d /mm/damon/Makefile
parentmm/damon/sysfs: split out schemes directory implementation to separate file (diff)
downloadlinux-7ae2c17f53d5054d1fe5c1a103ad46068034617d.tar.xz
linux-7ae2c17f53d5054d1fe5c1a103ad46068034617d.zip
mm/damon/modules: deduplicate init steps for DAMON context setup
DAMON_RECLAIM and DAMON_LRU_SORT has duplicated code for DAMON context and target initializations. Deduplicate the part by implementing a function for the initialization in 'modules-common.c' and using it. Link: https://lkml.kernel.org/r/20221026225943.100429-12-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/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/damon/Makefile b/mm/damon/Makefile
index 1e86f5253d7f..f7add3f4aa79 100644
--- a/mm/damon/Makefile
+++ b/mm/damon/Makefile
@@ -5,5 +5,5 @@ 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-schemes.o sysfs.o
obj-$(CONFIG_DAMON_DBGFS) += dbgfs.o
-obj-$(CONFIG_DAMON_RECLAIM) += reclaim.o
-obj-$(CONFIG_DAMON_LRU_SORT) += lru_sort.o
+obj-$(CONFIG_DAMON_RECLAIM) += modules-common.o reclaim.o
+obj-$(CONFIG_DAMON_LRU_SORT) += modules-common.o lru_sort.o