Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: SJ Park <sj@kernel.org>
To: sashiko-bot@kernel.org
Cc: SJ Park <sj@kernel.org>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Brendan Higgins" <brendan.higgins@linux.dev>,
	"David Gow" <davidgow@davidgow.net>,
	damon@lists.linux.dev, kunit-dev@googlegroups.com,
	linux-mm@kvack.org
Subject: Re: [RFC PATCH 1/3] Revert "mm/damon/tests/core-kunit: test the size charged for a filter-trimmed region"
Date: Mon, 30 Nov 2026 07:57:48 -0800	[thread overview]
Message-ID: <20261130155750.108630-1-sj@kernel.org> (raw)
In-Reply-To: <sashiko-outbox-241501@kernel.org>

On Mon, 30 Nov 2026 15:32:49 +0000 sashiko-bot@kernel.org wrote:

> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Low] mm/damon: revert removes quota KUnit test
>   damos_test_apply_scheme_quota_sz()
> --
> 
> commit 4862262ff70f1be1e1a5ee23327f2295ebc0c57d
> Author: SJ Park <sj@kernel.org>
> 
> Revert "mm/damon/tests/core-kunit: test the size charged for a filter-trimmed region"
> 
> This commit reverts 1c3352282063 ("mm/damon/tests/core-kunit: test the size
> charged for a filter-trimmed region"), removing its KUnit test cases from
> mm/damon/tests/core-kunit.h.
> 
> > diff --git a/mm/damon/tests/core-kunit.h b/mm/damon/tests/core-kunit.h
> > index 73c3bd6a96125..5244ac0ffc285 100644
> > --- a/mm/damon/tests/core-kunit.h
> > +++ b/mm/damon/tests/core-kunit.h
> 
> [ ... ]
> 
> > @@ -2780,9 +2467,6 @@ static struct kunit_case damon_test_cases[] = {
> >  	KUNIT_CASE(damos_test_age_ms_filter_is_core),
> >  	KUNIT_CASE(damos_test_age_ms_filter_interval_changes),
> >  	KUNIT_CASE(damos_test_filter_out),
> > -	KUNIT_CASE(damos_test_apply_scheme_filtered_sz),
> > -	KUNIT_CASE(damos_test_apply_scheme_filter_sz_unchanged),
> > -	KUNIT_CASE(damos_test_apply_scheme_quota_sz),
> 
> [Severity: Low]
> Does reverting 1c3352282063 ("mm/damon/tests/core-kunit: test the size
> charged for a filter-trimmed region") in full also drop
> damos_test_apply_scheme_quota_sz(), which does not test core filters?

Makes sense.  I will drop only the first two tests.

> 
> The commit message says 1c3352282063 ("mm/damon/tests/core-kunit: test
> the size charged for a filter-trimmed region") added two tests that
> duplicate damos_test_filter_out(), but it added three.  The third test,
> damos_test_apply_scheme_quota_sz(), uses no filters and instead tests
> damos_apply_scheme() when c->ops.apply_scheme is NULL, when quota.esz
> splits a region, and when the remaining quota is smaller than a region,
> none of which damos_test_filter_out() covers.
> 
> -- 
> Sashiko AI review · https://sashiko.dev/#/patchset/20261130152242.90137-1-sj@kernel.org?part=1
> 


Thanks,
SJ


  reply	other threads:[~2026-11-30 15:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 15:22 [RFC PATCH 0/3] mm/damon: treat DAMOS core filters as a primary target selection method SJ Park
2026-11-30 15:22 ` [RFC PATCH 1/3] Revert "mm/damon/tests/core-kunit: test the size charged for a filter-trimmed region" SJ Park
2026-11-30 15:32   ` sashiko-bot
2026-11-30 15:57     ` SJ Park [this message]
2026-11-30 15:22 ` [RFC PATCH 2/3] mm/damon/core: apply damos core filter in __damos_valid_target() SJ Park
2026-11-30 15:22 ` [RFC PATCH 3/3] Docs/mm/damon/design: update node_eligible_mem_bp for changed behavior SJ Park

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=20261130155750.108630-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=brendan.higgins@linux.dev \
    --cc=damon@lists.linux.dev \
    --cc=davidgow@davidgow.net \
    --cc=kunit-dev@googlegroups.com \
    --cc=linux-mm@kvack.org \
    --cc=sashiko-bot@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox