linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Enze Li <lienze@kylinos.cn>
To: SeongJae Park <sj@kernel.org>
Cc: akpm@linux-foundation.org,  damon@lists.linux.dev,
	 linux-mm@kvack.org, enze.li@gmx.com
Subject: Re: [PATCH] mm/damon: rename primitives to operations
Date: Mon, 26 May 2025 14:25:40 +0800	[thread overview]
Message-ID: <87o6vfj3bv.fsf@kylinos.cn> (raw)
In-Reply-To: <20250524162910.67889-1-sj@kernel.org> (SeongJae Park's message of "Sat, 24 May 2025 09:29:10 -0700")

Hi SeongJae,

On Sat, May 24 2025 at 09:29:10 AM -0700, SeongJae Park wrote:

> Hi Enze,
>
> On Sat, 24 May 2025 20:55:36 +0800 Enze Li <lienze@kylinos.cn> wrote:
>
>> The word 'primitive' is not explicit and has been deprecated in DAMON's
>> context since commit f7d911c39cbb ("mm/damon: rename damon_primitives to
>> damon_operations").  To make the code easier to be understand, this
>> commit renames remaining 'primitives' to 'operations' in header comments
>> of DAMON source files.
>
> Thank you for this patch!  The description makes sense to me.
>
> The title makes me bit confused, though.  By reading it, I was assuming this
> patch is changing some code.  But this is changing only comments.  Could you
> please make the title more clearly specify that?  E.g., "fix outdated comments
> for monitoring primitives"?
>
>> 
>> Fixes: f7d911c39cbb ("mm/damon: rename damon_primitives to damon_operations")
>> Signed-off-by: Enze Li <lienze@kylinos.cn>
>> ---
>>  mm/damon/modules-common.c | 2 +-
>>  mm/damon/modules-common.h | 2 +-
>>  mm/damon/ops-common.c     | 2 +-
>>  mm/damon/ops-common.h     | 2 +-
>>  mm/damon/paddr.c          | 2 +-
>>  mm/damon/sysfs-common.c   | 2 +-
>>  mm/damon/sysfs-common.h   | 2 +-
>>  mm/damon/vaddr.c          | 2 +-
>>  8 files changed, 8 insertions(+), 8 deletions(-)
>
> But, the term (primitives) on the comments of the files means the DAMON
> monitoring primitives (old name of DAMON operations) only in {p,v}addr.c files.
> On the comment of other files, the term means code for basic and common uses.
>
> Using 'Operations' term on the files look ok to me.  But in the case, the
> commit message may better to slightly be updated to clarify this.
>
> Just keeping those files to use 'Primitives' term, or using a more neutral
> term, say, Code (e.g., Common Code for DAMON Modules) could also be options, in
> my opinion.
>
> I have no strong preference among these three options.  Please pick what you
> prefer.

Thanks for your suggestion.  It seems to me that using 'Code' term is a
reasonable choice.

>
> Could you please revise as abovely suggested and resend?

I've sent a v2 to the current thread, many thanks for your review and
suggestions!  Please let me know if further adjustments are needed.

BR,
Enze

>
>
> Thanks,
> SJ
>
> [...]


  reply	other threads:[~2025-05-26  6:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-24 12:55 Enze Li
2025-05-24 16:29 ` SeongJae Park
2025-05-26  6:25   ` Enze Li [this message]
2025-05-26 18:09     ` SeongJae Park
2025-05-30  1:57       ` Enze Li
2025-05-26  9:31   ` David Hildenbrand
2025-05-26 17:55     ` SeongJae Park
2025-05-29 17:26       ` SeongJae Park
2025-05-30  5:47         ` Enze Li
2025-05-26  6:09 ` [PATCH v2] mm/damon: fix outdated comments for monitoring primitives Enze Li
2025-05-26 18:12   ` SeongJae 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=87o6vfj3bv.fsf@kylinos.cn \
    --to=lienze@kylinos.cn \
    --cc=akpm@linux-foundation.org \
    --cc=damon@lists.linux.dev \
    --cc=enze.li@gmx.com \
    --cc=linux-mm@kvack.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox