From: Hyeonggon Yoo <42.hyeyoo@gmail.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Petr Mladek <pmladek@suse.com>,
linux-mm@kvack.org
Subject: Re: [PATCH] Do not print page type when the page has no type
Date: Sun, 28 May 2023 17:01:59 +0900 [thread overview]
Message-ID: <ZHMKd2kufyVM9xZl@debian-BULLSEYE-live-builder-AMD64> (raw)
In-Reply-To: <ZHI0YKzZADjr1nyq@casper.infradead.org>
On Sat, May 27, 2023 at 05:48:32PM +0100, Matthew Wilcox wrote:
> It is confusing and unnecessary to print the page type when the
> page has no type.
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
>
> ---
>
> I did not run the test-suite. I'm in the middle of debugging something
> else and this is an unwelcome distraction. If this doesn't work quite
> right, please fix it.
I ran the test suite, and a test case failed:
[ 1.001641] test_printf: loaded.
[ 1.001736] test_printf: vsnprintf(buf, 256, "%pGt", ...) returned 41, expected 5
[ 1.001738] test_printf: vsnprintf(buf, 2, "%pGt", ...) returned 41, expected 5
[ 1.001738] test_printf: vsnprintf(buf, 0, "%pGt", ...) returned 41, expected 5
[ 1.001739] test_printf: kvasprintf(..., "%pGt", ...) returned '0xa(offline|guard|table|buddy|0xfffff875)', expected '0xa()'
[ 1.001774] test_printf: failed 4 out of 432 tests
The code mostly looks fine and the patch makes sense to me.
But I'm not sure if it's a nice behavior to print garbage when it does not
have a page type, although I can hardly imagine users of this flag other
than __dump_page(). I'd rather keep printk part unchanged and add
page_has_type() check in __dump_page().
Thanks!
--
Hyeonggon Yoo
Doing kernel stuff as a hobby
Undergraduate | Chungnam National University
Dept. Computer Science & Engineering
next prev parent reply other threads:[~2023-05-28 8:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-27 16:48 [PATCH] Do not print page type when the page has no type Matthew Wilcox
2023-05-28 8:01 ` Hyeonggon Yoo [this message]
2023-05-29 15:27 ` Petr Mladek
2023-05-29 15:42 ` Matthew Wilcox
2023-05-30 7:35 ` Petr Mladek
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=ZHMKd2kufyVM9xZl@debian-BULLSEYE-live-builder-AMD64 \
--to=42.hyeyoo@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=pmladek@suse.com \
--cc=willy@infradead.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;
as well as URLs for NNTP newsgroup(s).