staging/lustre/fld: Replace OBD_ALLOC_GFP with kzalloc
authorOleg Drokin <green@linuxhacker.ru>
Wed, 16 Sep 2015 16:26:59 +0000 (12:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2015 03:32:11 +0000 (20:32 -0700)
Part of effort to get 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/fld/fld_cache.c

index 1b1066b2461ceadb6aeb01e7d12fe76d1b89fa83..5eeb36dc988fe8d7d7073081727af699d87eef26 100644 (file)
@@ -266,7 +266,7 @@ static void fld_cache_punch_hole(struct fld_cache *cache,
        const u64 new_end  = range->lsr_end;
        struct fld_cache_entry *fldt;
 
-       OBD_ALLOC_GFP(fldt, sizeof(*fldt), GFP_ATOMIC);
+       fldt = kzalloc(sizeof(*fldt), GFP_ATOMIC);
        if (!fldt) {
                kfree(f_new);
                /* overlap is not allowed, so dont mess up list. */