diff options
author | Anuradha Talur <atalur@redhat.com> | 2016-04-21 17:20:09 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2016-04-25 23:47:28 -0700 |
commit | 9996f95b28b3782887b7c233cdc0ba686c38b245 (patch) | |
tree | 5fa681f25b95dd9aeec88f3bf86adbc98bd2c1d3 /libglusterfs/src/default-args.c | |
parent | 2dc22adbf3361bdab10924943371492cc2817d8a (diff) |
performance/decompounder: Introducing decompounder xlator
This xlator decompounds the compound fops received,
and executes them serially.
Change-Id: Ieddcec3c2983dd9ca7919ba9d7ecaa5192a5f489
BUG: 1303829
Signed-off-by: Anuradha Talur <atalur@redhat.com>
Reviewed-on: http://review.gluster.org/13577
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src/default-args.c')
-rw-r--r-- | libglusterfs/src/default-args.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libglusterfs/src/default-args.c b/libglusterfs/src/default-args.c index 29c8aeae9fd..1ce907f6221 100644 --- a/libglusterfs/src/default-args.c +++ b/libglusterfs/src/default-args.c @@ -1486,3 +1486,37 @@ args_cbk_wipe (default_args_cbk_t *args_cbk) if (!list_empty (&args_cbk->entries.list)) gf_dirent_free (&args_cbk->entries); } + +void +args_wipe (default_args_t *args) +{ + if (!args) + return; + + if (&args->loc) + loc_wipe (&args->loc); + + if (&args->loc2) + loc_wipe (&args->loc2); + + if (args->fd) + fd_unref (args->fd); + + GF_FREE ((char *)args->linkname); + + GF_FREE (args->vector); + + if (args->iobref) + iobref_unref (args->iobref); + + if (args->xattr) + dict_unref (args->xattr); + + if (args->xdata) + dict_unref (args->xdata); + + GF_FREE ((char *)args->name); + + GF_FREE ((char *)args->volume); + +} |