From: phil Date: Sun, 30 Nov 2003 22:01:53 +0000 (+0000) Subject: use PORTAL_SLAB_FREE now that we also use _ALLOC X-Git-Tag: v1_7_0_51~2^7~170 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b22e35a01392b821316196e603d1fba0978cce5e;p=fs%2Flustre-release.git use PORTAL_SLAB_FREE now that we also use _ALLOC --- diff --git a/lnet/include/lnet/lib-lnet.h b/lnet/include/lnet/lib-lnet.h index f11c17a..c402828 100644 --- a/lnet/include/lnet/lib-lnet.h +++ b/lnet/include/lnet/lib-lnet.h @@ -183,7 +183,7 @@ lib_eq_free (nal_cb_t *nal, lib_eq_t *eq) { /* ALWAYS called with statelock held */ atomic_dec (&eq_in_use_count); - kmem_cache_free(ptl_eq_slab, eq); + PORTAL_SLAB_FREE(eq, ptl_eq_slab, sizeof(*eq)); } static inline lib_md_t * @@ -205,7 +205,7 @@ lib_md_free (nal_cb_t *nal, lib_md_t *md) { /* ALWAYS called with statelock held */ atomic_dec (&md_in_use_count); - kmem_cache_free(ptl_md_slab, md); + PORTAL_SLAB_FREE(md, ptl_md_slab, sizeof(*md)); } static inline lib_me_t * @@ -227,7 +227,7 @@ lib_me_free(nal_cb_t *nal, lib_me_t *me) { /* ALWAYS called with statelock held */ atomic_dec (&me_in_use_count); - kmem_cache_free(ptl_me_slab, me); + PORTAL_SLAB_FREE(me, ptl_me_slab, sizeof(*me)); } static inline lib_msg_t * @@ -249,7 +249,7 @@ lib_msg_free(nal_cb_t *nal, lib_msg_t *msg) { /* ALWAYS called with statelock held */ atomic_dec (&msg_in_use_count); - kmem_cache_free(ptl_msg_slab, msg); + PORTAL_SLAB_FREE(msg, ptl_msg_slab, sizeof(*msg)); } #endif diff --git a/lnet/include/lnet/lib-p30.h b/lnet/include/lnet/lib-p30.h index f11c17a..c402828 100644 --- a/lnet/include/lnet/lib-p30.h +++ b/lnet/include/lnet/lib-p30.h @@ -183,7 +183,7 @@ lib_eq_free (nal_cb_t *nal, lib_eq_t *eq) { /* ALWAYS called with statelock held */ atomic_dec (&eq_in_use_count); - kmem_cache_free(ptl_eq_slab, eq); + PORTAL_SLAB_FREE(eq, ptl_eq_slab, sizeof(*eq)); } static inline lib_md_t * @@ -205,7 +205,7 @@ lib_md_free (nal_cb_t *nal, lib_md_t *md) { /* ALWAYS called with statelock held */ atomic_dec (&md_in_use_count); - kmem_cache_free(ptl_md_slab, md); + PORTAL_SLAB_FREE(md, ptl_md_slab, sizeof(*md)); } static inline lib_me_t * @@ -227,7 +227,7 @@ lib_me_free(nal_cb_t *nal, lib_me_t *me) { /* ALWAYS called with statelock held */ atomic_dec (&me_in_use_count); - kmem_cache_free(ptl_me_slab, me); + PORTAL_SLAB_FREE(me, ptl_me_slab, sizeof(*me)); } static inline lib_msg_t * @@ -249,7 +249,7 @@ lib_msg_free(nal_cb_t *nal, lib_msg_t *msg) { /* ALWAYS called with statelock held */ atomic_dec (&msg_in_use_count); - kmem_cache_free(ptl_msg_slab, msg); + PORTAL_SLAB_FREE(msg, ptl_msg_slab, sizeof(*msg)); } #endif diff --git a/lustre/portals/include/portals/lib-p30.h b/lustre/portals/include/portals/lib-p30.h index f11c17a..c402828 100644 --- a/lustre/portals/include/portals/lib-p30.h +++ b/lustre/portals/include/portals/lib-p30.h @@ -183,7 +183,7 @@ lib_eq_free (nal_cb_t *nal, lib_eq_t *eq) { /* ALWAYS called with statelock held */ atomic_dec (&eq_in_use_count); - kmem_cache_free(ptl_eq_slab, eq); + PORTAL_SLAB_FREE(eq, ptl_eq_slab, sizeof(*eq)); } static inline lib_md_t * @@ -205,7 +205,7 @@ lib_md_free (nal_cb_t *nal, lib_md_t *md) { /* ALWAYS called with statelock held */ atomic_dec (&md_in_use_count); - kmem_cache_free(ptl_md_slab, md); + PORTAL_SLAB_FREE(md, ptl_md_slab, sizeof(*md)); } static inline lib_me_t * @@ -227,7 +227,7 @@ lib_me_free(nal_cb_t *nal, lib_me_t *me) { /* ALWAYS called with statelock held */ atomic_dec (&me_in_use_count); - kmem_cache_free(ptl_me_slab, me); + PORTAL_SLAB_FREE(me, ptl_me_slab, sizeof(*me)); } static inline lib_msg_t * @@ -249,7 +249,7 @@ lib_msg_free(nal_cb_t *nal, lib_msg_t *msg) { /* ALWAYS called with statelock held */ atomic_dec (&msg_in_use_count); - kmem_cache_free(ptl_msg_slab, msg); + PORTAL_SLAB_FREE(msg, ptl_msg_slab, sizeof(*msg)); } #endif