diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-05-01 15:51:17 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-08 07:23:48 (GMT) |
commit | 7b81779d0dd62316d4f92fab96eeba9ddfa3aaa6 (patch) | |
tree | 9a51cb72fa474e3101afba5037df1d0d72ac4886 /drivers/sfi | |
parent | 8bcf30c3bf4e95cd506591171d81b266d43e8d41 (diff) | |
download | linux-7b81779d0dd62316d4f92fab96eeba9ddfa3aaa6.tar.xz |
staging: lustre: mdc: Use kzalloc and kfree
Replace OBD_ALLOC, OBD_ALLOC_WAIT, OBD_ALLOC_PTR, and OBD_ALLOC_PTR_WAIT by
kalloc/kcalloc, and OBD_FREE and OBD_FREE_PTR by kfree.
A simplified version of the semantic patch that makes these changes is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@ expression ptr,size; @@
- OBD_ALLOC(ptr,size)
+ ptr = kzalloc(size, GFP_NOFS)
@@ expression ptr, size; @@
- OBD_FREE(ptr, size);
+ kfree(ptr);
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/sfi')
0 files changed, 0 insertions, 0 deletions