summaryrefslogtreecommitdiffstats
path: root/xlators/features/sdfs/src/sdfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/sdfs/src/sdfs.h')
-rw-r--r--xlators/features/sdfs/src/sdfs.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/xlators/features/sdfs/src/sdfs.h b/xlators/features/sdfs/src/sdfs.h
index d28257eda5e..986d7c2731c 100644
--- a/xlators/features/sdfs/src/sdfs.h
+++ b/xlators/features/sdfs/src/sdfs.h
@@ -13,37 +13,37 @@
#include "sdfs-messages.h"
#include "atomic.h"
-#define SDFS_LOCK_COUNT_MAX 2
+#define SDFS_LOCK_COUNT_MAX 2
-typedef struct{
- loc_t parent_loc;
- char *basename;
- int locked[SDFS_LOCK_COUNT_MAX];
+typedef struct {
+ loc_t parent_loc;
+ char *basename;
+ int locked[SDFS_LOCK_COUNT_MAX];
} sdfs_entry_lock_t;
typedef struct {
- sdfs_entry_lock_t entrylk[SDFS_LOCK_COUNT_MAX];
- int lock_count;
+ sdfs_entry_lock_t entrylk[SDFS_LOCK_COUNT_MAX];
+ int lock_count;
} sdfs_lock_t;
struct sdfs_local {
- call_frame_t *main_frame;
- loc_t loc;
- loc_t parent_loc;
- call_stub_t *stub;
- sdfs_lock_t *lock;
- int op_ret;
- int op_errno;
- gf_atomic_t call_cnt;
+ call_frame_t *main_frame;
+ loc_t loc;
+ loc_t parent_loc;
+ call_stub_t *stub;
+ sdfs_lock_t *lock;
+ int op_ret;
+ int op_errno;
+ gf_atomic_t call_cnt;
};
typedef struct sdfs_local sdfs_local_t;
-#define SDFS_STACK_DESTROY(frame) do { \
- sdfs_local_t *__local = NULL; \
- __local = frame->local; \
- frame->local = NULL; \
- gf_client_unref (frame->root->client); \
- STACK_DESTROY (frame->root); \
- sdfs_local_cleanup (__local); \
- } while (0)
-
+#define SDFS_STACK_DESTROY(frame) \
+ do { \
+ sdfs_local_t *__local = NULL; \
+ __local = frame->local; \
+ frame->local = NULL; \
+ gf_client_unref(frame->root->client); \
+ STACK_DESTROY(frame->root); \
+ sdfs_local_cleanup(__local); \
+ } while (0)