From: Oleg Drokin Date: Wed, 16 Sep 2015 16:26:59 +0000 (-0400) Subject: staging/lustre/fld: Replace OBD_ALLOC_GFP with kzalloc X-Git-Tag: KARO-TX6UL-2015-11-03~34^2~1943 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3dc6f3252296f158764b110310124ec0e5eec6b0;p=karo-tx-linux.git staging/lustre/fld: Replace OBD_ALLOC_GFP with kzalloc Part of effort to get rid of custom Lustre allocation macros. Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/fld/fld_cache.c b/drivers/staging/lustre/lustre/fld/fld_cache.c index 1b1066b2461c..5eeb36dc988f 100644 --- a/drivers/staging/lustre/lustre/fld/fld_cache.c +++ b/drivers/staging/lustre/lustre/fld/fld_cache.c @@ -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. */