From 79241696fbdebe2583298f12cbaee068ce60c655 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Mon, 7 Jun 2010 12:37:34 +0000 Subject: dynamic volume changes for graph replacement Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971 --- libglusterfs/src/stack.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libglusterfs/src/stack.h') diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h index 48b5587ac..ac69e389f 100644 --- a/libglusterfs/src/stack.h +++ b/libglusterfs/src/stack.h @@ -143,7 +143,7 @@ FRAME_DESTROY (call_frame_t *frame) static inline void STACK_DESTROY (call_stack_t *stack) { - glusterfs_ctx_t *ctx = get_global_ctx_ptr (); + glusterfs_ctx_t *ctx = glusterfs_ctx_get (); if (ctx && ctx->measure_latency) { gettimeofday (&stack->frames.end, NULL); @@ -330,18 +330,18 @@ copy_frame (call_frame_t *frame) { list_add (&newstack->all_frames, &oldstack->all_frames); newstack->pool->cnt++; - } UNLOCK (&oldstack->pool->lock); return &newstack->frames; } + static inline call_frame_t * create_frame (xlator_t *xl, call_pool_t *pool) { - call_stack_t *stack = NULL; - glusterfs_ctx_t *ctx = get_global_ctx_ptr (); + call_stack_t *stack = NULL; + glusterfs_ctx_t *ctx = glusterfs_ctx_get (); if (!xl || !pool) { return NULL; -- cgit