All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "SJ Park" <sj@kernel.org>
Cc: damon@lists.linux.dev
Subject: Re: [RFC PATCH 1/6] mm/damon/api: introduce DAMOS_FILTER_TYPE_PROBE_HITS_WSUM
Date: Sun, 06 Sep 2026 21:13:01 +0000	[thread overview]
Message-ID: <20260906211301.942AB1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260906210513.106895-2-sj@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Mismatch between kernel-doc comment and the actual struct field name for range_max.
--

commit 7d0758e3c3054c52a080a43553753f124a5933b1
Author: SJ Park <sj@kernel.org>

mm/damon/api: introduce DAMOS_FILTER_TYPE_PROBE_HITS_WSUM

Update DAMON kernel API to introduce new DAMOS core filter type,
PROBE_HITS_WSUM. It adds two type-dependent union fields to damos_filter
for describing the filtering target weighted sum range.

> diff --git a/include/linux/damon.h b/include/linux/damon.h
> index 871d26adf6ae5..59d57131d8327 100644
> --- a/include/linux/damon.h
> +++ b/include/linux/damon.h
[ ... ]
> @@ -434,6 +436,8 @@ enum damos_filter_type {
>   *		&damon_ctx->adaptive_targets if @type is
>   *		DAMOS_FILTER_TYPE_TARGET.
>   * @sz_range:	Size range if @type is DAMOS_FILTER_TYPE_HUGEPAGE_SIZE.
> + * @range_min:	Minimum value of range arguments.
> + * @range_mx:	Maximum value of range arguments.

[Severity: Low]
This isn't a bug, but there appears to be a typo in the kernel-doc comment
compared to the actual struct field. Should this be @range_max instead of
@range_mx to match the struct field defined below?

>   *
>   * Before applying the &damos->action to a memory region, DAMOS checks if each
>   * byte of the region matches to this given condition and avoid applying the
> @@ -450,6 +454,10 @@ struct damos_filter {
>  		struct damon_addr_range addr_range;
>  		int target_idx;
>  		struct damon_size_range sz_range;
> +		struct {
> +			unsigned long range_min;
> +			unsigned long range_max;
> +		};
>  	};
>  /* private: */
>  	/* List head for siblings. */

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260906210513.106895-1-sj@kernel.org?part=1

  reply	other threads:[~2026-09-06 21:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-06 21:05 [RFC PATCH 0/6] mm/damon: introduce probe_hits_wsum DAMOS core filter SJ Park
2026-09-06 21:05 ` [RFC PATCH 1/6] mm/damon/api: introduce DAMOS_FILTER_TYPE_PROBE_HITS_WSUM SJ Park
2026-09-06 21:13   ` sashiko-bot [this message]
2026-09-06 21:15     ` SJ Park
2026-09-06 21:05 ` [RFC PATCH 2/6] mm/damon/core: support probe_hits_wsum damos core filter SJ Park
2026-09-06 21:17   ` sashiko-bot
2026-09-06 21:29     ` SJ Park
2026-09-06 21:05 ` [RFC PATCH 3/6] mm/damon/sysfs-schemes: rename sysfs_filter->sz_range to range_{min,max} SJ Park
2026-09-06 21:11   ` sashiko-bot
2026-09-06 21:05 ` [RFC PATCH 4/6] mm/damon/sysfs-schemes: setup range_{min,max} for probe_hits_wsum filter SJ Park
2026-09-06 21:16   ` sashiko-bot
2026-09-06 21:30     ` SJ Park
2026-09-06 21:05 ` [RFC PATCH 5/6] Docs/mm/damon/design: update for probe_hits_wsum DAMOS core filter SJ Park
2026-09-06 21:07   ` sashiko-bot
2026-09-06 21:05 ` [RFC PATCH 6/6] Docs/admin-guide/mm/damon/usage: update for probe_hits_wsum DAMOS filter SJ Park
2026-09-06 21:11   ` 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=20260906211301.942AB1F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=damon@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=sj@kernel.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.