From: Christoph Hellwig <hch@infradead.org>
To: hongao <hongao@uniontech.com>
Cc: cem@kernel.org, djwong@kernel.org, sandeen@redhat.com,
linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xfs: Remove redundant NULL check after __GFP_NOFAIL
Date: Tue, 3 Mar 2026 06:41:07 -0800 [thread overview]
Message-ID: <aabzA-Wd8OECZFHD@infradead.org> (raw)
In-Reply-To: <B6935AE39B8FFBF2+20260303033332.277641-1-hongao@uniontech.com>
On Tue, Mar 03, 2026 at 11:33:32AM +0800, hongao wrote:
> Remove redundant NULL check after kzalloc() with GFP_KERNEL | __GFP_NOLOCKDEP | __GFP_NOFAIL.
Looks good. Might also be worth to switching to kcalloc while you're at
it.
next prev parent reply other threads:[~2026-03-03 14:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 3:33 [PATCH] xfs: Remove redundant NULL check after __GFP_NOFAIL hongao
2026-03-03 14:41 ` Christoph Hellwig [this message]
2026-03-04 9:50 ` Carlos Maiolino
2026-03-04 11:29 ` [PATCH v2] " hongao
2026-03-04 13:20 ` Christoph Hellwig
2026-03-05 9:47 ` Carlos Maiolino
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=aabzA-Wd8OECZFHD@infradead.org \
--to=hch@infradead.org \
--cc=cem@kernel.org \
--cc=djwong@kernel.org \
--cc=hongao@uniontech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox