aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/raid
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-02-26 14:25:02 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-01 19:18:42 -0800
commit3eed2d000275d8b6352cffeb60e79e55239f1f16 (patch)
tree3046d96c9709dd2b74105222c6174210828d0931 /include/linux/raid
parentstaging: lustre: osc: Replace kmem_cache_alloc with kmem_cache_zalloc (diff)
staging: lustre: ldlm: Replace kmem_cache_alloc with kmem_cache_zalloc
Use kmem_cache_zalloc instead of manually setting kmem_cache_alloc with flag GFP_ZERO since kmem_alloc_zalloc sets allocated memory to zero. The Coccinelle semantic patch used to make this change is as follows: // <smpl> @@ expression e,f; @@ - kmem_cache_alloc(e, f |__GFP_ZERO) + kmem_cache_zalloc(e, f) // </smpl> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/raid')
0 files changed, 0 insertions, 0 deletions