staging/lustre/ptlrpc: Replace OBD_FREE_PTR with kfree
authorOleg Drokin <green@linuxhacker.ru>
Wed, 16 Sep 2015 16:27:01 +0000 (12:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2015 03:32:12 +0000 (20:32 -0700)
Part of effort of getting rid of custom Lustre alloc/free macros

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

index 1d64ca71920cfe454a69a66de4a80ee6299352f5..34c7e28afdafc22e2a4ca2945f9db436efc8fd36 100644 (file)
@@ -298,6 +298,6 @@ static inline void tgt_mod_exit(void)
 static inline void ptlrpc_reqset_put(struct ptlrpc_request_set *set)
 {
        if (atomic_dec_and_test(&set->set_refcount))
-               OBD_FREE_PTR(set);
+               kfree(set);
 }
 #endif /* PTLRPC_INTERNAL_H */