From: SJ Park <sj@kernel.org>
Cc: SJ Park <sj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
damon@lists.linux.dev, linux-mm@kvack.org,
Lian Wang <lianux.mm@gmail.com>
Subject: [RFC PATCH v2 4/4] mm/damon/sysfs: remove damon_sysfs_cmd_strs and NR_DAMON_SYSFS_CMDS
Date: Sat, 28 Nov 2026 14:29:58 -0800 [thread overview]
Message-ID: <20261128222959.585723-5-sj@kernel.org> (raw)
In-Reply-To: <20261128222959.585723-1-sj@kernel.org>
Remove damon_sysfs_cmd_strs and NR_DAMON_SYSFS_CMDS, which are not being
used.
Reviewed-by: Lian Wang <lianux.mm@gmail.com>
Signed-off-by: SJ Park <sj@kernel.org>
---
mm/damon/sysfs.c | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c
index 5a91a1c3e438..1ae072675ba3 100644
--- a/mm/damon/sysfs.c
+++ b/mm/damon/sysfs.c
@@ -2234,24 +2234,6 @@ enum damon_sysfs_cmd {
* intervals.
*/
DAMON_SYSFS_CMD_UPDATE_TUNED_INTERVALS,
- /*
- * @NR_DAMON_SYSFS_CMDS: Total number of DAMON sysfs commands.
- */
- NR_DAMON_SYSFS_CMDS,
-};
-
-/* Should match with enum damon_sysfs_cmd */
-static const char * const damon_sysfs_cmd_strs[] = {
- "on",
- "off",
- "commit",
- "commit_schemes_quota_goals",
- "update_schemes_stats",
- "update_schemes_tried_bytes",
- "update_schemes_tried_regions",
- "clear_schemes_tried_regions",
- "update_schemes_effective_quotas",
- "update_tuned_intervals",
};
struct damon_sysfs_cmd_name {
--
2.47.3
prev parent reply other threads:[~2026-11-28 22:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 22:29 [RFC PATCH v2 0/4] mm/damon/sysfs: refactor state input matching SJ Park
2026-11-28 22:29 ` [RFC PATCH v2 1/4] mm/damon/sysfs: define damon_sysfs_cmd_name type and array SJ Park
2026-11-28 22:29 ` [RFC PATCH v2 2/4] mm/damon/sysfs: use damon_sysfs_cmd_names in state_store() SJ Park
2026-11-28 22:29 ` [RFC PATCH v2 3/4] mm/damon/sysfs: use damon_sysfs_cmd_names in state_show() SJ Park
2026-11-28 22:29 ` SJ Park [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128222959.585723-5-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--cc=lianux.mm@gmail.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox