diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-03-12 19:56:08 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-03-08 17:02:27 -0800 |
commit | 40b0bf5fc01a17e9a1628cd9ff537b7e15353958 (patch) | |
tree | 99a476c2d1b5dc1e6d6a98691bf9ebb655d9ee74 /xlators/storage/bd/src/bd-aio.c | |
parent | 0ddd69a60e49f1335ed29a8225e31d24c836083a (diff) |
storage/bd: Fix allocations/deallocations
Change-Id: I39c9eb083fc1c144fe6f011dd983b877fbbff0f7
BUG: 1075717
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/7230
Reviewed-by: Anand Avati <avati@redhat.com>
Tested-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/storage/bd/src/bd-aio.c')
-rw-r--r-- | xlators/storage/bd/src/bd-aio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/storage/bd/src/bd-aio.c b/xlators/storage/bd/src/bd-aio.c index 62d4590f7..9dc13b3ec 100644 --- a/xlators/storage/bd/src/bd-aio.c +++ b/xlators/storage/bd/src/bd-aio.c @@ -29,6 +29,7 @@ #ifdef HAVE_LIBAIO #include <libaio.h> +#include "bd-mem-types.h" struct bd_aio_cb { struct iocb iocb; @@ -187,7 +188,7 @@ bd_aio_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, goto err; } - paiocb = CALLOC (1, sizeof (*paiocb)); + paiocb = GF_CALLOC (1, sizeof (*paiocb), gf_bd_aio_cb); if (!paiocb) { op_errno = ENOMEM; goto err; @@ -314,7 +315,7 @@ bd_aio_writev (call_frame_t *frame, xlator_t *this, fd_t *fd, _fd = bd_fd->fd; - paiocb = CALLOC (1, sizeof (*paiocb)); + paiocb = GF_CALLOC (1, sizeof (*paiocb), gf_bd_aio_cb); if (!paiocb) { op_errno = ENOMEM; goto err; |