summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/include/obd_support.h
diff options
context:
space:
mode:
authorDmitry Eremin <dmitry.eremin@intel.com>2015-07-06 12:48:54 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-13 19:47:20 -0700
commit323b0b2c1e57d3c089473d755ff9a001d1a6bc8f (patch)
treebf312124bbf70fe5c62d27e1ff4d383b54205f7a /drivers/staging/lustre/lustre/include/obd_support.h
parent8710427dd68f4dff8976d221e220317cea20ecec (diff)
downloadlinux-0-day-323b0b2c1e57d3c089473d755ff9a001d1a6bc8f.tar.gz
linux-0-day-323b0b2c1e57d3c089473d755ff9a001d1a6bc8f.tar.xz
staging/lustre/libcfs: Remove redundant enums and sysctl moduleparams
/proc/sys/lnet/lnet_memused Remove memory tracking for LNet. Remove redundant enums definition. Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/include/obd_support.h')
-rw-r--r--drivers/staging/lustre/lustre/include/obd_support.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/staging/lustre/lustre/include/obd_support.h b/drivers/staging/lustre/lustre/include/obd_support.h
index f6b369206ace6..88e16717e854e 100644
--- a/drivers/staging/lustre/lustre/include/obd_support.h
+++ b/drivers/staging/lustre/lustre/include/obd_support.h
@@ -501,8 +501,6 @@ int obd_alloc_fail(const void *ptr, const char *name, const char *type,
#define OBD_FAIL_ONCE CFS_FAIL_ONCE
#define OBD_FAILED CFS_FAILED
-extern atomic_t libcfs_kmemory;
-
extern void obd_update_maxusage(void);
#define obd_memory_add(size) \
@@ -618,8 +616,8 @@ do { \
if (unlikely((ptr) == NULL)) { \
CERROR("vmalloc of '" #ptr "' (%d bytes) failed\n", \
(int)(size)); \
- CERROR("%llu total bytes allocated by Lustre, %d by LNET\n", \
- obd_memory_sum(), atomic_read(&libcfs_kmemory)); \
+ CERROR("%llu total bytes allocated by Lustre\n", \
+ obd_memory_sum()); \
} else { \
OBD_ALLOC_POST(ptr, size, "vmalloced"); \
} \
@@ -765,12 +763,10 @@ do { \
"failed\n", (int)1, \
(__u64)(1 << PAGE_CACHE_SHIFT)); \
CERROR("%llu total bytes and %llu total pages " \
- "(%llu bytes) allocated by Lustre, " \
- "%d total bytes by LNET\n", \
+ "(%llu bytes) allocated by Lustre\n", \
obd_memory_sum(), \
obd_pages_sum() << PAGE_CACHE_SHIFT, \
- obd_pages_sum(), \
- atomic_read(&libcfs_kmemory)); \
+ obd_pages_sum()); \
} else { \
obd_pages_add(0); \
CDEBUG(D_MALLOC, "alloc_pages '" #ptr "': %d page(s) / " \