From: SeongJae Park <sj@kernel.org>
To: Ye Liu <ye.liu@linux.dev>
Cc: SeongJae Park <sj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Ye Liu <liuye@kylinos.cn>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tools/mm/page_owner_sort: add help option support
Date: Thu, 16 Oct 2025 18:35:22 -0700 [thread overview]
Message-ID: <20251017013523.112897-1-sj@kernel.org> (raw)
In-Reply-To: <51f86d0e-e9dc-42ef-baee-0dfdd39b7cab@linux.dev>
On Fri, 17 Oct 2025 09:19:09 +0800 Ye Liu <ye.liu@linux.dev> wrote:
>
>
> 在 2025/10/17 04:10, SeongJae Park 写道:
> > On Thu, 16 Oct 2025 13:49:25 +0800 Ye Liu <ye.liu@linux.dev> wrote:
> >
> >> From: Ye Liu <liuye@kylinos.cn>
> >>
> >> Add -h/--help option to display usage information and improve code style.
> >
> > Looks good to me, though I have a trivial comment below.
> >
> >>
> >> Signed-off-by: Ye Liu <liuye@kylinos.cn>
> >> ---
> >> tools/mm/page_owner_sort.c | 10 +++++++---
> >> 1 file changed, 7 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/tools/mm/page_owner_sort.c b/tools/mm/page_owner_sort.c
> >> index 880e36df0c11..202eafed66a9 100644
> >> --- a/tools/mm/page_owner_sort.c
> >> +++ b/tools/mm/page_owner_sort.c
> >> @@ -669,14 +669,15 @@ int main(int argc, char **argv)
> >> { "pid", required_argument, NULL, 1 },
> >> { "tgid", required_argument, NULL, 2 },
> >> { "name", required_argument, NULL, 3 },
> >> - { "cull", required_argument, NULL, 4 },
> >> - { "sort", required_argument, NULL, 5 },
> >> + { "cull", required_argument, NULL, 4 },
> >> + { "sort", required_argument, NULL, 5 },
> >
> > Seems unnecessary changes.
> The spacing changes fix inconsistent formatting in longopts array.
> Since the format fixes are simple and in the same context, I put them together.
Thank you for clarifying.
> If you insist on removing these changes, I will drop them in the next version.
I have no strong opinion, plese do whatever you prefer :)
Thanks,
SJ
[...]
prev parent reply other threads:[~2025-10-17 1:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-16 5:49 Ye Liu
2025-10-16 20:10 ` SeongJae Park
2025-10-17 1:19 ` Ye Liu
2025-10-17 1:35 ` 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=20251017013523.112897-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=liuye@kylinos.cn \
--cc=ye.liu@linux.dev \
/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