mm-damon-sysfs-split-out-schemes-directory-implementation-to-separate-file.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/sysfs: split out schemes directory implementation to separate file
has been removed from the -mm tree. Its filename was
mm-damon-sysfs-split-out-schemes-directory-implementation-to-separate-file.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon/sysfs: split out schemes directory implementation to separate file
Date: Wed, 26 Oct 2022 22:59:41 +0000
DAMON sysfs interface for 'schemes' directory is implemented using about one thousand lines of code. It has no strong dependency with other parts of its file, so split it out to another file for better code management.
---
mm/damon/Makefile | 2 mm/damon/sysfs-common.h | 22 mm/damon/sysfs-schemes.c | 1022 +++++++++++++++++++++++++++++++++++++ mm/damon/sysfs.c | 1018 ------------------------------------ 4 files changed, 1045 insertions(+), 1019 deletions(-)
mm/damon/Makefile renamed from mm/damon/Makefile~mm-damon-sysfs-split-out-schemes-directory-implementation-to-separate-file +1 -1
@@ -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-common.o sysfs.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
mm/damon/sysfs.c renamed from mm/damon/sysfs.c~mm-damon-sysfs-split-out-schemes-directory-implementation-to-separate-file +0 -1018
1,036 lines not on this page · raw message
mm/damon/sysfs-common.h renamed from mm/damon/sysfs-common.h~mm-damon-sysfs-split-out-schemes-directory-implementation-to-separate-file +22 -0
@@ -22,3 +22,25 @@ struct damon_sysfs_ul_range *damon_sysfsvoid damon_sysfs_ul_range_release (struct kobject *kobj);extern struct kobj_type damon_sysfs_ul_range_ktype; + +/* +* schemes directory +*/ + +struct damon_sysfs_schemes { +struct kobject kobj; +struct damon_sysfs_scheme **schemes_arr; +int nr; +}; + +struct damon_sysfs_schemes *damon_sysfs_schemes_alloc (void ); +void damon_sysfs_schemes_rm_dirs (struct damon_sysfs_schemes *schemes); + +extern struct kobj_type damon_sysfs_schemes_ktype; + +int damon_sysfs_set_schemes (struct damon_ctx *ctx, +struct damon_sysfs_schemes *sysfs_schemes); + +void damon_sysfs_schemes_update_stats ( +struct damon_sysfs_schemes *sysfs_schemes, +struct damon_ctx *ctx);
mm/damon/sysfs-schemes.c new file +1022 -0
1,022 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
docs-admin-guide-mm-damon-usage-describe-the-rules-of-sysfs-region-directories.patch docs-admin-guide-mm-damon-usage-fix-wrong-usage-example-of-init_regions-file.patch mm-damon-core-add-a-callback-for-scheme-target-regions-check.patch mm-damon-sysfs-schemes-implement-schemes-tried_regions-directory.patch mm-damon-sysfs-schemes-implement-scheme-region-directory.patch mm-damon-sysfs-implement-damos-tried-regions-update-command.patch mm-damon-sysfs-schemes-implement-damos-tried-regions-clear-command.patch tools-selftets-damon-sysfs-test-tried_regions-directory-existence.patch docs-admin-guide-mm-damon-usage-document-schemes-s-tried_regions-sysfs-directory.patch docs-abi-damon-document-schemes-s-tried_regions-sysfs-directory.patch selftests-damon-test-non-context-inputs-to-rm_contexts-file.patch