diff options
author | Anuradha Talur <atalur@redhat.com> | 2016-08-29 16:41:09 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2016-08-30 23:50:40 -0700 |
commit | 7cbc10037ecc873d60c3a970d00faf2819019525 (patch) | |
tree | 35026d258fa4bb9aad89f7a504954bb566ffa4fc /libglusterfs/src/default-args.c | |
parent | fe929224c47d5c82da5650e9e1041645a8d7f244 (diff) |
compound fops: Some fixes to compound fops framework
Change-Id: I808fd5f9f002a35bff94d310c5d61a781e49570b
BUG: 1360169
Signed-off-by: Anuradha Talur <atalur@redhat.com>
Reviewed-on: http://review.gluster.org/15010
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'libglusterfs/src/default-args.c')
-rw-r--r-- | libglusterfs/src/default-args.c | 12 |
1 files changed, 8 insertions, 4 deletions
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); +} |