summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r--xlators/cluster/afr/src/afr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h
index ac1a5f6ad18..76ccec2ae0b 100644
--- a/xlators/cluster/afr/src/afr.h
+++ b/xlators/cluster/afr/src/afr.h
@@ -411,6 +411,8 @@ typedef struct _afr_local {
((op_errno == ENOTCONN) || \
(op_errno == EBADFD)))
+#define afr_fop_failed(op_ret, op_errno) ((op_ret) == -1)
+
/* have we tried all children? */
#define all_tried(i, count) ((i) == (count) - 1)