diff options
| author | Amitoj Kaur Chawla <[email protected]> | 2016-02-26 14:24:21 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-03-01 19:18:42 -0800 |
| commit | 3dd842896bdfe0acbe0088c20b5f8be581b0e690 (patch) | |
| tree | e6acb4ca0279dc622f8b2f20446a20c708bf9519 /tools/perf/scripts/python | |
| parent | a9eddde6b9020c4fa65283c5dfa9eb19948a0c23 (diff) | |
staging: lustre: lclient: 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')
0 files changed, 0 insertions, 0 deletions