Whamcloud - gitweb
LU-6142 kernel: use kmem_cache_zalloc as appropriate. 39/38439/3
authorMr NeilBrown <neilb@suse.de>
Fri, 1 May 2020 05:11:59 +0000 (15:11 +1000)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 May 2020 08:23:24 +0000 (08:23 +0000)
commit3ceed00b0458dec68ceff4068dcaadd34a71c664
tree4a93135de5aab8e2119b0f1df2eaf6860ae88dbb
parent95bcc24642c4b95d093407fef0947ee2f5a2c01a
LU-6142 kernel: use kmem_cache_zalloc as appropriate.

Rather than passing __GFP_ZERO to kmem_cache_alloc(), or calling
memset(0) after the allocation, use kmem_cache_zalloc().

Also update spelling.txt to encourage use of kmem_cache_zalloc().

kmem_cache_zalloc() has been part of Linux since 2.6.17.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ic4ccbe0e223121e54699f7667e35db14d0f0da70
Reviewed-on: https://review.whamcloud.com/38439
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/scripts/spelling.txt
lnet/include/lnet/lib-lnet.h
lnet/klnds/gnilnd/gnilnd_cb.c
lnet/klnds/gnilnd/gnilnd_conn.c
lnet/lnet/lib-me.c
lustre/include/obd_support.h