staging/lustre/ptlrpc: Replace OBD_FREE_PTR with kfree
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
781c848aa3
commit
1089175c9c
@ -298,6 +298,6 @@ static inline void tgt_mod_exit(void)
|
|||||||
static inline void ptlrpc_reqset_put(struct ptlrpc_request_set *set)
|
static inline void ptlrpc_reqset_put(struct ptlrpc_request_set *set)
|
||||||
{
|
{
|
||||||
if (atomic_dec_and_test(&set->set_refcount))
|
if (atomic_dec_and_test(&set->set_refcount))
|
||||||
OBD_FREE_PTR(set);
|
kfree(set);
|
||||||
}
|
}
|
||||||
#endif /* PTLRPC_INTERNAL_H */
|
#endif /* PTLRPC_INTERNAL_H */
|
||||||
|
Reference in New Issue
Block a user