public inbox for linux-mm@kvack.org
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SeongJae Park <sj@kernel.org>,
	damon@lists.linux.dev, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org
Subject: [PATCH 4/7] mm/damon: document non-zero length damon_region assumption
Date: Sat,  7 Mar 2026 11:53:52 -0800	[thread overview]
Message-ID: <20260307195356.203753-5-sj@kernel.org> (raw)
In-Reply-To: <20260307195356.203753-1-sj@kernel.org>

DAMON regions are assumed to always be non-zero length.  There was a
confusion [1] about it, probably due to lack of the documentation.
Document it.

[1] https://lore.kernel.org/20251231070029.79682-1-sj@kernel.org/

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 include/linux/damon.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/damon.h b/include/linux/damon.h
index 9a88cf8d152d8..6bd71546f7b20 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -55,6 +55,8 @@ struct damon_size_range {
  * @list:		List head for siblings.
  * @age:		Age of this region.
  *
+ * For any use case, @ar should be non-zero positive size.
+ *
  * @nr_accesses is reset to zero for every &damon_attrs->aggr_interval and be
  * increased for every &damon_attrs->sample_interval if an access to the region
  * during the last sampling interval is found.  The update of this field should
-- 
2.47.3


  parent reply	other threads:[~2026-03-07 19:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-07 19:53 [PATCH 0/7] mm/damon: improve/fixup/update ratio calculation, test and documentation SeongJae Park
2026-03-07 19:53 ` [PATCH 1/7] mm/damon/core: use mult_frac() SeongJae Park
2026-03-07 19:53 ` [PATCH 2/7] mm/damon/tests/core-kunit: add a test for damon_is_last_region() SeongJae Park
2026-03-09  2:34   ` wang lian
2026-03-07 19:53 ` [PATCH 3/7] mm/damon/core: clarify damon_set_attrs() usages SeongJae Park
2026-03-07 19:53 ` SeongJae Park [this message]
2026-03-07 19:53 ` [PATCH 5/7] Docs/admin-guide/mm/damn/lru_sort: fix intervals autotune parameter name SeongJae Park
2026-03-07 19:53 ` [PATCH 6/7] Docs/mm/damon/maintainer-profile: use flexible review cadence SeongJae Park
2026-03-07 19:53 ` [PATCH 7/7] Docs/mm/damon/index: fix typo: autoamted -> automated SeongJae Park
2026-03-09  2:27 ` [PATCH 0/7] mm/damon: improve/fixup/update ratio calculation, test and documentation wang lian

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=20260307195356.203753-5-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox