From: SeongJae Park <sj@kernel.org>
To: Honggyu Kim <honggyu.kim@sk.com>
Cc: SeongJae Park <sj@kernel.org>,
damon@lists.linux.dev, kernel_team@skhynix.com
Subject: Re: [PATCH] mm/damon/core: Refactor damos_set_effective_quota
Date: Mon, 25 Nov 2024 10:27:56 -0800 [thread overview]
Message-ID: <20241125182756.23921-1-sj@kernel.org> (raw)
In-Reply-To: <20241125044938.1412-1-honggyu.kim@sk.com>
On Mon, 25 Nov 2024 13:49:33 +0900 Honggyu Kim <honggyu.kim@sk.com> wrote:
> On Fri, 22 Nov 2024 11:29:26 -0800 SeongJae Park <sj@kernel.org> wrote:
> > Hi Honggyu,
> >
> >
> > Thank you for this patch. Definitely DAMON needs many refactoring and
> > cleanups.
> >
> > The subject of the patch is a little bit ambiguous to me. Could we make it
> > more specific, e.g., "set esz of damos_set_effective_quota() as ULONG_MAX by
> > default"?
>
> Hi SeongJae,
>
> Thanks for the review, but IMHO, setting the default value of esz is to remove
> one of duplicate if statement, not the goal of this patch.
>
> So I think the following title might be better.
>
> mm/damon/core: remove duplicate list_empty quota->goals check
>
> Is this okay for you?
Yes, this looks specific and non-ambiguous enough to me.
[...]
> > > --- a/mm/damon/core.c
> > > +++ b/mm/damon/core.c
> > > @@ -1542,7 +1542,7 @@ static unsigned long damos_quota_score(struct damos_quota *quota)
> > > static void damos_set_effective_quota(struct damos_quota *quota)
> > > {
> > > unsigned long throughput;
> > > - unsigned long esz;
> > > + unsigned long esz = UINT_MAX;
> >
> > Let's use ULONG_MAX.
>
> Ack. I will apply this and send v2 soon.
Thank you, I will review it soon :)
Thanks,
SJ
[...]
prev parent reply other threads:[~2024-11-25 18:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 8:18 [PATCH] mm/damon/core: Refactor damos_set_effective_quota Honggyu Kim
2024-11-22 19:29 ` SeongJae Park
2024-11-25 4:49 ` Honggyu Kim
2024-11-25 18:27 ` SeongJae Park [this message]
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=20241125182756.23921-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=damon@lists.linux.dev \
--cc=honggyu.kim@sk.com \
--cc=kernel_team@skhynix.com \
/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.