staging/lustre: Remove users of OBD_ALLOC/FREE_PTR lu_object.h
authorOleg Drokin <green@linuxhacker.ru>
Wed, 16 Sep 2015 16:26:55 +0000 (12:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2015 03:32:10 +0000 (20:32 -0700)
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>
drivers/staging/lustre/lustre/include/lu_object.h

index 96e271d7df9a43ea5916f8f9a9181a94a0b25f13..77560085082ac1e2393d96399f22401ce37c966d 100644 (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 */