From: SJ Park <sj@kernel.org>
Cc: SJ Park <sj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
damon@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: [RFC PATCH v1.1 2/5] mm/damon/paddr: support DAMON_FILTER_TYPE_PGIDLE_SET
Date: Wed, 9 Sep 2026 21:09:04 -0700 [thread overview]
Message-ID: <20260910040911.148273-3-sj@kernel.org> (raw)
In-Reply-To: <20260910040911.148273-1-sj@kernel.org>
Implement DAMON_FILTER_TYPE_PGIDLE_SET support on the physical address
space DAMON operation set (paddr).
Signed-off-by: SJ Park <sj@kernel.org>
---
mm/damon/paddr.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/mm/damon/paddr.c b/mm/damon/paddr.c
index b8f4d28165dd7..5abfabaa339e0 100644
--- a/mm/damon/paddr.c
+++ b/mm/damon/paddr.c
@@ -151,6 +151,12 @@ static bool damon_pa_filter_match(struct damon_filter *filter,
else
matched = damon_folio_young(folio);
break;
+ case DAMON_FILTER_TYPE_PGIDLE_SET:
+ if (!folio)
+ matched = false;
+ else
+ matched = damon_folio_young(folio) == false;
+ break;
default:
return damon_ops_filter_match(filter, folio);
}
--
2.47.3
next prev parent reply other threads:[~2026-09-10 4:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 4:09 [RFC PATCH v1.1 0/5] mm/damon: introduce pgidle_set probe filter type SJ Park
2026-09-10 4:09 ` [RFC PATCH v1.1 1/5] mm/damon/api: introduce DAMON_FILTER_TYPE_PGIDLE_SET SJ Park
2026-09-10 4:14 ` sashiko-bot
2026-09-10 4:09 ` SJ Park [this message]
2026-09-10 4:19 ` [RFC PATCH v1.1 2/5] mm/damon/paddr: support DAMON_FILTER_TYPE_PGIDLE_SET sashiko-bot
2026-09-10 4:09 ` [RFC PATCH v1.1 3/5] mm/damon/vaddr: " SJ Park
2026-09-10 4:15 ` sashiko-bot
2026-09-10 4:09 ` [RFC PATCH v1.1 4/5] mm/damon/sysfs: " SJ Park
2026-09-10 4:15 ` sashiko-bot
2026-09-10 4:09 ` [RFC PATCH v1.1 5/5] Docs/mm/damon/design: update for pgidle_set probe filter SJ Park
2026-09-10 4:10 ` sashiko-bot
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=20260910040911.148273-3-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.