diff options
| author | Amitoj Kaur Chawla <[email protected]> | 2016-02-26 14:24:41 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-03-01 19:18:42 -0800 |
| commit | 38cf948df1326f6ab82a536170a6b2e8f520a6b1 (patch) | |
| tree | fc4d4e3deeccaaba0f3b0e1303d4bc5a3530f696 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 8210132b230e926747596cad1a5ba9d59c08ae82 (diff) | |
staging: lustre: obdecho: 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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions