Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1226262

[PATCH v2 10/19] staging/lustre/ptlrpc: Replace OBD_FREE_PTR with kfree

From green@linuxhacker.ru
Newsgroups linux.kernel
Subject [PATCH v2 10/19] staging/lustre/ptlrpc: Replace OBD_FREE_PTR with kfree
Date 2015-09-16 18:40 +0200
Message-ID <q9nUt-1tZ-3@gated-at.bofh.it> (permalink)
References <q9nKO-1iB-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Oleg Drokin <green@linuxhacker.ru>

Part of effort of getting rid of custom Lustre alloc/free macros

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
---
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h
index 1d64ca7..34c7e28 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h
+++ b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h
@@ -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 */
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/19] Lustre cleanups green@linuxhacker.ru - 2015-09-16 18:30 +0200
  [PATCH v2 16/19] staging/lustre: remove obd_memory stats counter green@linuxhacker.ru - 2015-09-16 18:30 +0200
  [PATCH v2 10/19] staging/lustre/ptlrpc: Replace OBD_FREE_PTR with kfree green@linuxhacker.ru - 2015-09-16 18:40 +0200
  [PATCH v2 07/19] staging/lustre: Remove references to OBD_ALLOC/FREE* in comments green@linuxhacker.ru - 2015-09-16 18:40 +0200
  [PATCH v2 02/19] staging/lustre: Remove unused OBD_VMALLOC green@linuxhacker.ru - 2015-09-16 18:40 +0200
  [PATCH v2 04/19] staging/lustre: Remove users of OBD_ALLOC/FREE_PTR lu_object.h green@linuxhacker.ru - 2015-09-16 18:40 +0200
  [PATCH v2 03/19] staging/lustre: Remove unused OBD_CPT_ALLOC* macros green@linuxhacker.ru - 2015-09-16 18:40 +0200
  [PATCH v2 15/19] staging/lustre: Remove lustre used memory tracking framework green@linuxhacker.ru - 2015-09-16 18:40 +0200
  [PATCH v2 08/19] staging/lustre/fld: Replace OBD_ALLOC_GFP with kzalloc green@linuxhacker.ru - 2015-09-16 18:40 +0200
  [PATCH v2 11/19] staging/lustre: Replace last users of OBD_ALLOC/FREE_LARGE green@linuxhacker.ru - 2015-09-16 18:40 +0200

csiph-web