lustre: obdclass: linux: Replace uses of OBD_{ALLOC, FREE}_LARGE
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 11 Jun 2015 12:02:57 +0000 (14:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jun 2015 16:06:11 +0000 (09:06 -0700)
commit6b0e43db2855db06b822cde88416366e985cc113
tree883e303b35e8a26ab57f613337adfa4cfd760ff7
parentfea2e68e21f88f6694540bafc2c22e797f2f4bda
lustre: obdclass: linux: 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>
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
This page took 0.03485 seconds and 5 git commands to generate.