summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/mem-pool.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-16 09:37:55 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-17 11:57:04 -0700
commitce01662eefb575d1afe397486653920ec101f40f (patch)
tree671f2eaad1efaf80c4f0d8a45c8c6c94dd6131c4 /libglusterfs/src/mem-pool.h
parentb44b06a9d0adb50b426e0ee195a9867e01240ada (diff)
libglusterfs: logging/mem-pool section white-space cleanup
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2346 (Log message enhancements in GlusterFS - phase 1) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'libglusterfs/src/mem-pool.h')
-rw-r--r--libglusterfs/src/mem-pool.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/libglusterfs/src/mem-pool.h b/libglusterfs/src/mem-pool.h
index 6b09d62212f..0cda62fb85b 100644
--- a/libglusterfs/src/mem-pool.h
+++ b/libglusterfs/src/mem-pool.h
@@ -32,11 +32,11 @@
#define MALLOC(size) malloc(size)
#define CALLOC(cnt,size) calloc(cnt,size)
-#define FREE(ptr) \
- if (ptr != NULL) { \
- free ((void *)ptr); \
- ptr = (void *)0xeeeeeeee; \
- }
+#define FREE(ptr) \
+ if (ptr != NULL) { \
+ free ((void *)ptr); \
+ ptr = (void *)0xeeeeeeee; \
+ }
struct mem_acct {
uint32_t num_types;
@@ -73,7 +73,7 @@ gf_asprintf (char **string_ptr, const char *format, ...);
#define GF_REALLOC(ptr, size) __gf_realloc (ptr, size)
-void
+void
__gf_free (void *ptr);
@@ -98,16 +98,14 @@ char * gf_strdup (const char *src)
return dup_str;
}
-
-
struct mem_pool {
- struct list_head list;
- int hot_count;
- int cold_count;
- gf_lock_t lock;
- unsigned long padded_sizeof_type;
- void *pool;
- void *pool_end;
+ struct list_head list;
+ int hot_count;
+ int cold_count;
+ gf_lock_t lock;
+ unsigned long padded_sizeof_type;
+ void *pool;
+ void *pool_end;
int real_sizeof_type;
};