diff options
| author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-06-11 14:02:56 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-11 09:06:11 -0700 |
| commit | fea2e68e21f88f6694540bafc2c22e797f2f4bda (patch) | |
| tree | 62da71bfac2dd8835c5140ce44686bf882f4e6f3 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 337844670a4b305314a6238879db6faa812adddc (diff) | |
lustre: obdclass: Replace uses of OBD_{ALLOC,FREE}_LARGE
Replace uses of OBD_ALLOC_LARGE by libcfs_kvzalloc and OBD_FREE_LARGE by
kvfree.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression ptr,size;
@@
- OBD_ALLOC_LARGE(ptr,size)
+ ptr = libcfs_kvzalloc(size, GFP_NOFS)
@@
expression ptr,size;
@@
- OBD_FREE_LARGE(ptr, size);
+ kvfree(ptr);
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
