Whamcloud - gitweb
LU-14289 libcfs: discard cfs_array_alloc() 92/41992/2
authorMr NeilBrown <neilb@suse.de>
Wed, 24 Feb 2021 23:57:19 +0000 (10:57 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Mar 2021 04:16:50 +0000 (04:16 +0000)
commit8ec9fe0d55b1f5a7854dabe240f43e6cd5cb22ad
tree1d3823bd08290561ee3db866837c7baac5ed07b1
parentd9753b5ba6ad29fd8958a47b462d2fa594ba1145
LU-14289 libcfs: discard cfs_array_alloc()

cfs_array_alloc() and _free() are used for precisely one array, and
provide little value beyond open-coding the alloc and free.

So discard these functions and alloc/free in the loops that already
exist for setup and cleanup.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I2a66be311dbba269b0b43c3a75f17ccc8e946538
Reviewed-on: https://review.whamcloud.com/41992
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Aurelien Degremont <degremoa@amazon.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_private.h
libcfs/libcfs/libcfs_mem.c
lnet/lnet/lib-ptl.c