From: Darrick J. Wong Date: Wed, 22 Jun 2022 19:28:52 +0000 (-0500) Subject: xfs: convert buf_cancel_table allocation to kmalloc_array X-Git-Tag: v5.19.0-rc0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d539f7135de7c05cdbfe39d570d2c417dc5fc642;p=thirdparty%2Fxfsprogs-dev.git xfs: convert buf_cancel_table allocation to kmalloc_array Source kernel commit: 910bbdf2f4d7df46781bc9b723048f5ebed3d0d7 While we're messing around with how recovery allocates and frees the buffer cancellation table, convert the allocation to use kmalloc_array instead of the old kmem_alloc APIs, and make it handle a null return, even though that's not likely. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner Signed-off-by: Eric Sandeen ---