mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
staging/lustre: Remove unused OBD_VMALLOC
These macros are not used anymore, so let's remove them, also __OBD_VMALLOC_VEROBSE and OBD_CPT_VMALLOC Signed-off-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6fd57333de
commit
8800d8cf7e
1 changed files with 0 additions and 29 deletions
|
@ -608,27 +608,6 @@ do { \
|
|||
#define OBD_CPT_ALLOC_PTR(ptr, cptab, cpt) \
|
||||
OBD_CPT_ALLOC(ptr, cptab, cpt, sizeof(*(ptr)))
|
||||
|
||||
# define __OBD_VMALLOC_VEROBSE(ptr, cptab, cpt, size) \
|
||||
do { \
|
||||
(ptr) = cptab == NULL ? \
|
||||
vzalloc(size) : \
|
||||
vzalloc_node(size, cfs_cpt_spread_node(cptab, cpt)); \
|
||||
if (unlikely((ptr) == NULL)) { \
|
||||
CERROR("vmalloc of '" #ptr "' (%d bytes) failed\n", \
|
||||
(int)(size)); \
|
||||
CERROR("%llu total bytes allocated by Lustre\n", \
|
||||
obd_memory_sum()); \
|
||||
} else { \
|
||||
OBD_ALLOC_POST(ptr, size, "vmalloced"); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
# define OBD_VMALLOC(ptr, size) \
|
||||
__OBD_VMALLOC_VEROBSE(ptr, NULL, 0, size)
|
||||
# define OBD_CPT_VMALLOC(ptr, cptab, cpt, size) \
|
||||
__OBD_VMALLOC_VEROBSE(ptr, cptab, cpt, size)
|
||||
|
||||
|
||||
#define OBD_ALLOC_LARGE(ptr, size) \
|
||||
do { \
|
||||
ptr = libcfs_kvzalloc(size, GFP_NOFS); \
|
||||
|
@ -677,14 +656,6 @@ do { \
|
|||
POISON_PTR(ptr); \
|
||||
} while (0)
|
||||
|
||||
|
||||
#define OBD_VFREE(ptr, size) \
|
||||
do { \
|
||||
OBD_FREE_PRE(ptr, size, "vfreed"); \
|
||||
vfree(ptr); \
|
||||
POISON_PTR(ptr); \
|
||||
} while (0)
|
||||
|
||||
/* 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. */
|
||||
|
|
Loading…
Reference in a new issue