Re: [PATCH] xfs: Remove redundant NULL check after __GFP_NOFAIL

From: Christoph Hellwig

Date: Tue Mar 03 2026 - 09:41:31 EST


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.