]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: Remove redundant NULL check after __GFP_NOFAIL
authorhongao <hongao@uniontech.com>
Wed, 4 Mar 2026 11:29:14 +0000 (19:29 +0800)
committerCarlos Maiolino <cem@kernel.org>
Thu, 5 Mar 2026 09:02:45 +0000 (10:02 +0100)
commit281cb17787d4284a7790b9cbd80fded826ca7739
treeddf6991c6d664f122e97e3879f94739af9250653
parent0ca1a8331c0fa5e57844e003a5d667a15b1e002c
xfs: Remove redundant NULL check after __GFP_NOFAIL

kzalloc() is called with __GFP_NOFAIL, so a NULL return is not expected.
Drop the redundant !map check in xfs_dabuf_map().
Also switch the nirecs-sized allocation to kcalloc().

Signed-off-by: hongao <hongao@uniontech.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_da_btree.c