Whamcloud - gitweb
LU-4423 ldlm: discard varname in ldlm_pool. 73/35273/3
authorNeilBrown <neilb@suse.com>
Thu, 20 Jun 2019 03:38:40 +0000 (23:38 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 Jun 2019 21:34:01 +0000 (21:34 +0000)
commitb9fc8953d8b4ea769114ecab287d89b71ee5aba1
tree17bc92e2b618b6d5570ae7bbd1a36ba40e69fe5f
parent7a707d4828807b45aeca368e707c243ba68fa51f
LU-4423 ldlm: discard varname in ldlm_pool.

This allocated buffer serves no purpose.
A constant string is copied into it, it is passed to some
function which copies it out again, then the buffer is freed.
Instead, we can pass the constant string to that function.

Change-Id: I83ea8fc839da3933ebc34756fc5c06b86427ce7c
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-on: https://review.whamcloud.com/35273
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
lustre/ldlm/ldlm_internal.h
lustre/ldlm/ldlm_pool.c