From f86a37bddf0f301c820c2a3ead50a93ce30dd2dc Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Sat, 23 Feb 2013 13:08:37 +0530 Subject: cluster/afr: Have common inode-write-fop cbk Change-Id: Ia7b324b86d6a7051d187106d7a060155e77defc5 BUG: 910217 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/5238 Reviewed-by: Ravishankar N Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/afr/src/afr.h | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 70c5a96a7e7..d49cb6ccb56 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -602,7 +602,9 @@ typedef struct _afr_local { struct { struct iatt prebuf; struct iatt postbuf; + } inode_wfop; //common structure for all inode-write-fops + struct { int32_t op_ret; struct iovec *vector; @@ -612,35 +614,22 @@ typedef struct _afr_local { uint32_t flags; } writev; - struct { - struct iatt prebuf; - struct iatt postbuf; - } fsync; - struct { off_t offset; - struct iatt prebuf; - struct iatt postbuf; } truncate; struct { off_t offset; - struct iatt prebuf; - struct iatt postbuf; } ftruncate; struct { struct iatt in_buf; int32_t valid; - struct iatt preop_buf; - struct iatt postop_buf; } setattr; struct { struct iatt in_buf; int32_t valid; - struct iatt preop_buf; - struct iatt postop_buf; } fsetattr; struct { @@ -707,15 +696,11 @@ typedef struct _afr_local { int32_t mode; off_t offset; size_t len; - struct iatt prebuf; - struct iatt postbuf; } fallocate; struct { off_t offset; size_t len; - struct iatt prebuf; - struct iatt postbuf; } discard; } cont; -- cgit