Whamcloud - gitweb
LU-18141 obd: remove OBD_SLAB_FREE_RTN0() 51/56051/2
authorTimothy Day <timday@amazon.com>
Wed, 14 Aug 2024 14:07:00 +0000 (10:07 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Aug 2024 22:09:00 +0000 (22:09 +0000)
This macro isn't called anywhere. So let's
remove it.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I485d1d40220a2cd1a65c430e6487ad2d2052ec44
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56051
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/obd_support.h

index 6b6a627..5eb436a 100644 (file)
@@ -967,16 +967,6 @@ do {                                                                             \
 #define OBD_FREE_PTR_ARRAY_LARGE(ptr, n)                       \
        OBD_FREE_LARGE(ptr, (n) * sizeof(*(ptr)))
 
-/* we memset() the slab object to 0 when allocation succeeds, so DO NOT
- * HAVE A CTOR THAT DOES ANYTHING.  its work will be cleared here.  we'd
- * love to assert on that, but slab.c keeps kmem_cache_s all to itself. */
-#define OBD_SLAB_FREE_RTN0(ptr, slab)                                         \
-({                                                                            \
-       kmem_cache_free((slab), (ptr));                                       \
-       (ptr) = NULL;                                                         \
-       0;                                                                    \
-})
-
 #define __OBD_SLAB_ALLOC_VERBOSE(ptr, slab, cptab, cpt, size, type)          \
 do {                                                                         \
        LASSERT(ergo((type) != GFP_ATOMIC, !in_interrupt()));                 \