diff options
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r-- | xlators/cluster/afr/src/afr.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index a447b74f47b..ac1a5f6ad18 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -394,22 +394,6 @@ typedef struct _afr_local { } afr_local_t; -typedef struct { - /* - split-brain situation in which afr - can do nothing - */ - gf_boolean_t split_brain; - - /* - subvolume from which all reads should - happen for this inode - */ - int read_child; - -} afr_inode_ctx_t; - - /* try alloc and if it fails, goto label */ #define ALLOC_OR_GOTO(var, type, label) do { \ var = CALLOC (sizeof (type), 1); \ @@ -430,6 +414,12 @@ typedef struct { /* have we tried all children? */ #define all_tried(i, count) ((i) == (count) - 1) +uint64_t +afr_read_child (xlator_t *this, inode_t *inode); + +void +afr_set_read_child (xlator_t *this, inode_t *inode, int32_t read_child); + void afr_build_parent_loc (loc_t *parent, loc_t *child); |