aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <[email protected]>2016-02-26 14:24:35 +0530
committerGreg Kroah-Hartman <[email protected]>2016-03-01 19:18:42 -0800
commit8210132b230e926747596cad1a5ba9d59c08ae82 (patch)
treefe7d447e962353f361b0d2475d7a71a95469d70c /tools/perf/scripts/python
parent99815cb579647a93eaf655933a5cfe1f3fd8488c (diff)
staging: lustre: lov: 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