[PATCH 15/15] staging: lustre: remove LIBCFS_ALLOC and LIBCFS_ALLOC_ATOMIC

From: NeilBrown
Date: Sun Dec 17 2017 - 19:57:40 EST


These are no longer used.

Signed-off-by: NeilBrown <neilb@xxxxxxxx>
---
.../lustre/include/linux/libcfs/libcfs_private.h | 19 -------------------
1 file changed, 19 deletions(-)

diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h
index d230c7f7cced..35ed07ff7c71 100644
--- a/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h
+++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h
@@ -85,25 +85,6 @@ do { \
} \
} while (0)

-/**
- * default allocator
- */
-#define LIBCFS_ALLOC(ptr, size) \
-do { \
- LASSERT(!in_interrupt()); \
- (ptr) = kvmalloc((size), GFP_NOFS); \
- LIBCFS_ALLOC_POST((ptr), (size)); \
-} while (0)
-
-/**
- * non-sleeping allocator
- */
-#define LIBCFS_ALLOC_ATOMIC(ptr, size) \
-do { \
- (ptr) = kmalloc((size), GFP_ATOMIC); \
- LIBCFS_ALLOC_POST(ptr, size); \
-} while (0)
-
/**
* allocate memory for specified CPU partition
* \a cptab != NULL, \a cpt is CPU partition id of \a cptab