]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: convert buf_cancel_table allocation to kmalloc_array
authorDarrick J. Wong <djwong@kernel.org>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
commitd539f7135de7c05cdbfe39d570d2c417dc5fc642
tree9644ab868f6c56cf6b79cdda55e2928935198ef9
parent3ce2772ef7f9cd65bd2a343aadf027f3a1306bfa
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 <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>