staging/lustre: Remove users of OBD_ALLOC/FREE_PTR lu_object.h

These are converted to regular kzalloc/kfree calls.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Oleg Drokin 2015-09-16 12:26:55 -04:00 committed by Greg Kroah-Hartman
parent f6173fe0be
commit fca5ba8a1d

View file

@ -1126,7 +1126,7 @@ struct lu_context_key {
\
CLASSERT(PAGE_CACHE_SIZE >= sizeof (*value)); \
\
OBD_ALLOC_PTR(value); \
value = kzalloc(sizeof(*value), GFP_NOFS); \
if (value == NULL) \
value = ERR_PTR(-ENOMEM); \
\
@ -1140,7 +1140,7 @@ struct lu_context_key {
{ \
type *info = data; \
\
OBD_FREE_PTR(info); \
kfree(info); \
} \
struct __##mod##__dummy_fini {; } /* semicolon catcher */