summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe/src
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-04-27 09:11:51 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-27 08:07:27 -0700
commit6f1895d77df52f0e0aa7c2a7aff09c9398640aef (patch)
treec2976ad547f1a27cd28781f19af7766a17396938 /xlators/cluster/stripe/src
parent585c23e8c7e81272d206aca19b2c0807975fec92 (diff)
cluster/stripe: Memory accounting changes
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 329 (Replacing memory allocation functions with mem-type functions) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
Diffstat (limited to 'xlators/cluster/stripe/src')
-rw-r--r--xlators/cluster/stripe/src/stripe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index 52473c03b..f2186ee6a 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -2866,7 +2866,7 @@ stripe_readv_fstat_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
op_ret += vec[count].iov_len;
count++;
}
- FREE (local->replies[i].vector);
+ GF_FREE (local->replies[i].vector);
}
/* FIXME: notice that st_ino, and st_dev (gen) will be
@@ -2877,7 +2877,7 @@ stripe_readv_fstat_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
tmp_stbuf.ia_size = local->stbuf_size;
done:
- FREE (local->replies);
+ GF_FREE (local->replies);
tmp_iobref = local->iobref;
fd_unref (local->fd);
STACK_UNWIND_STRICT (readv, frame, op_ret, op_errno, vec,
@@ -2885,7 +2885,7 @@ stripe_readv_fstat_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
iobref_unref (tmp_iobref);
if (vec)
- FREE (vec);
+ GF_FREE (vec);
}
return 0;
}
@@ -2975,7 +2975,7 @@ stripe_readv_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
(mlocal->replies[index].count *
sizeof (struct iovec)));
final_count += mlocal->replies[index].count;
- FREE (mlocal->replies[index].vector);
+ GF_FREE (mlocal->replies[index].vector);
}
/* FIXME: notice that st_ino, and st_dev (gen) will be
@@ -2986,7 +2986,7 @@ stripe_readv_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
done:
/* */
- FREE (mlocal->replies);
+ GF_FREE (mlocal->replies);
tmp_iobref = mlocal->iobref;
fd_unref (mlocal->fd);
STACK_UNWIND_STRICT (readv, mframe, op_ret, op_errno, final_vec,