]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging/lustre/obdclass: replace OBD_ALLOC_GFP with kzalloc
authorOleg Drokin <green@linuxhacker.ru>
Wed, 16 Sep 2015 16:26:57 +0000 (12:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2015 03:32:11 +0000 (20:32 -0700)
Part of getting rid of custom Lustre allocation macros.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/cl_page.c

index d5fb81f84cd4effa1d625206ec39255c636dde04..e27062d38a4585500c670afe15ec99b6013be887 100644 (file)
@@ -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;