summaryrefslogtreecommitdiffstats
path: root/xlators/features/thin-arbiter/src/thin-arbiter.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/thin-arbiter/src/thin-arbiter.h')
-rw-r--r--xlators/features/thin-arbiter/src/thin-arbiter.h54
1 files changed, 25 insertions, 29 deletions
diff --git a/xlators/features/thin-arbiter/src/thin-arbiter.h b/xlators/features/thin-arbiter/src/thin-arbiter.h
index 996f4441fdd..af3d4b1af92 100644
--- a/xlators/features/thin-arbiter/src/thin-arbiter.h
+++ b/xlators/features/thin-arbiter/src/thin-arbiter.h
@@ -21,43 +21,39 @@
#define THIN_ARBITER_SOURCE_XATTR "trusted.ta.source"
#define THIN_ARBITER_SOURCE_SIZE 2
-#define TA_FAILED_FOP(fop, frame, op_errno) \
- do { \
- default_##fop##_failure_cbk(frame, op_errno); \
+#define TA_FAILED_FOP(fop, frame, op_errno) \
+ do { \
+ default_##fop##_failure_cbk(frame, op_errno); \
} while (0)
-#define TA_STACK_UNWIND(fop, frame, op_ret, op_errno, params ...)\
- do { \
- ta_fop_t *__local = NULL; \
- int32_t __op_ret = 0; \
- int32_t __op_errno = 0; \
- \
- __local = frame->local; \
- __op_ret = op_ret; \
- __op_errno = op_errno; \
- if (__local) { \
- ta_release_fop (__local); \
- frame->local = NULL; \
- } \
- STACK_UNWIND_STRICT (fop, frame, __op_ret, \
- __op_errno, params); \
- \
+#define TA_STACK_UNWIND(fop, frame, op_ret, op_errno, params...) \
+ do { \
+ ta_fop_t *__local = NULL; \
+ int32_t __op_ret = 0; \
+ int32_t __op_errno = 0; \
+ \
+ __local = frame->local; \
+ __op_ret = op_ret; \
+ __op_errno = op_errno; \
+ if (__local) { \
+ ta_release_fop(__local); \
+ frame->local = NULL; \
+ } \
+ STACK_UNWIND_STRICT(fop, frame, __op_ret, __op_errno, params); \
+ \
} while (0)
struct _ta_fop;
typedef struct _ta_fop ta_fop_t;
struct _ta_fop {
- gf_xattrop_flags_t xattrop_flags;
- loc_t loc;
- fd_t *fd;
- dict_t *dict;
- dict_t *brick_xattr;
- int32_t on_disk[2];
- int32_t idx;
+ gf_xattrop_flags_t xattrop_flags;
+ loc_t loc;
+ fd_t *fd;
+ dict_t *dict;
+ dict_t *brick_xattr;
+ int32_t on_disk[2];
+ int32_t idx;
};
-
-
-
#endif /* _THIN_ARBITER_H */