From 7cbc10037ecc873d60c3a970d00faf2819019525 Mon Sep 17 00:00:00 2001 From: Anuradha Talur Date: Mon, 29 Aug 2016 16:41:09 +0530 Subject: compound fops: Some fixes to compound fops framework Change-Id: I808fd5f9f002a35bff94d310c5d61a781e49570b BUG: 1360169 Signed-off-by: Anuradha Talur Reviewed-on: http://review.gluster.org/15010 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra G --- libglusterfs/src/default-args.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libglusterfs/src/default-args.c') diff --git a/libglusterfs/src/default-args.c b/libglusterfs/src/default-args.c index 2e51bf21f84..f40de2dae68 100644 --- a/libglusterfs/src/default-args.c +++ b/libglusterfs/src/default-args.c @@ -1576,11 +1576,9 @@ args_wipe (default_args_t *args) if (!args) return; - if (&args->loc) - loc_wipe (&args->loc); + loc_wipe (&args->loc); - if (&args->loc2) - loc_wipe (&args->loc2); + loc_wipe (&args->loc2); if (args->fd) fd_unref (args->fd); @@ -1603,3 +1601,9 @@ args_wipe (default_args_t *args) GF_FREE ((char *)args->volume); } + +void +args_cbk_init (default_args_cbk_t *args_cbk) +{ + INIT_LIST_HEAD (&args_cbk->entries); +} -- cgit