From: Oleg Drokin Date: Wed, 16 Sep 2015 16:26:57 +0000 (-0400) Subject: staging/lustre/obdclass: replace OBD_ALLOC_GFP with kzalloc X-Git-Tag: KARO-TX6UL-2015-11-03~34^2~1945 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d37c8781c0c1f7d52213b94a32c9b82f402845f0;p=karo-tx-linux.git staging/lustre/obdclass: replace OBD_ALLOC_GFP with kzalloc Part of getting rid of custom Lustre allocation macros. Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/obdclass/cl_page.c b/drivers/staging/lustre/lustre/obdclass/cl_page.c index d5fb81f84cd4..e27062d38a45 100644 --- a/drivers/staging/lustre/lustre/obdclass/cl_page.c +++ b/drivers/staging/lustre/lustre/obdclass/cl_page.c @@ -283,8 +283,7 @@ static struct cl_page *cl_page_alloc(const struct lu_env *env, struct cl_page *page; struct lu_object_header *head; - OBD_ALLOC_GFP(page, cl_object_header(o)->coh_page_bufsize, - GFP_NOFS); + page = kzalloc(cl_object_header(o)->coh_page_bufsize, GFP_NOFS); if (page != NULL) { int result = 0;