diff options
author | Amar Tumballi <amarts@redhat.com> | 2017-09-25 16:44:06 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-11-06 14:23:49 +0000 |
commit | 125fc934e7f4c669f67e5eec5b0e3dae3a2b6d72 (patch) | |
tree | 24d1aa5139ad5766c4e9bc9e6add7e55df8fe329 /libglusterfs/src/syncop.h | |
parent | e86d71b7b4653ddd66db7f3a16074e46ed24848f (diff) |
stack: change gettimeofday() to clock_gettime()
For achieving the above, needed below changes too.
* more sanity into how 'frame->op' is assigned.
* infra to have 'stats' as separate section in 'xlator_t' structure
Updates #137
Change-Id: I36679bf9577f3ed00a695b4e7d92870dcb3db8e1
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/syncop.h')
-rw-r--r-- | libglusterfs/src/syncop.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h index a9cdee1fa00..c64b483e85c 100644 --- a/libglusterfs/src/syncop.h +++ b/libglusterfs/src/syncop.h @@ -231,7 +231,7 @@ struct syncopctx { } while (0) -#define SYNCOP(subvol, stb, cbk, op, params ...) do { \ +#define SYNCOP(subvol, stb, cbk, fn_op, params ...) do { \ struct synctask *task = NULL; \ call_frame_t *frame = NULL; \ \ @@ -249,8 +249,9 @@ struct syncopctx { \ __yawn (stb); \ \ + frame->op = get_fop_index_from_fn (subvol, fn_op); \ STACK_WIND_COOKIE (frame, cbk, (void *)stb, subvol, \ - op, params); \ + fn_op, params); \ \ __yield (stb); \ if (task) \ |