Tag: bae97e81102d281c92b00c44d43304be3ae3c0a6

staging/lustre/ptlrpc: Replace OBD_CPT_ALLOC etc by kzalloc_node

Author: Julia Lawall <Julia.Lawall@lip6.fr> Replace OBD_CPT_ALLOC, OBD_CPT_ALLOC_PTR, and OBD_CPT_ALLOC_GFP by corresponding calls to kzalloc_node. The semantic patch for the OBD_CPT_ALLOC case is as follows: (http://coccinelle.lip6.fr/). // @@ expression ptr,cptab,cpt,size; @@ – OBD_CPT_ALLOC(ptr, cptab, cpt, size) + ptr = kzalloc_node(size, GFP_NOFS, cfs_cpt_spread_node(cptab, cpt)) // Note that the original OBD macros would check if the cptab argument …

Continue reading