summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-10-08 06:21:08 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-09 00:48:38 -0700
commitf89f4c64af2d9253dea28504d9f27bf08b544bf0 (patch)
tree67b361384574abc4b8c24cd58266e8dd73f869b7 /libglusterfs/src
parent2dc9d11fe1c8aaeba972c6fd693de1f32e5e3f1a (diff)
performance/stat-prefetch: use op_errno instead of errno to store error code.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 221 (stat prefetch implementation) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/common-utils.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h
index 649f9b0220f..c5869f4a424 100644
--- a/libglusterfs/src/common-utils.h
+++ b/libglusterfs/src/common-utils.h
@@ -116,13 +116,13 @@ extern char *gf_cbk_list[GF_CBK_MAXVALUE];
} \
} while (0);
-#define GF_VALIDATE_OR_GOTO_WITH_ERROR(name, arg, label, error) do { \
- if (!arg) { \
- errno = error; \
- gf_log (name, GF_LOG_ERROR, \
- "invalid argument: " #arg); \
- goto label; \
- } \
+#define GF_VALIDATE_OR_GOTO_WITH_ERROR(name, arg, label, errno, error) do { \
+ if (!arg) { \
+ errno = error; \
+ gf_log (name, GF_LOG_ERROR, \
+ "invalid argument: " #arg); \
+ goto label; \
+ } \
}while (0);
#define GF_VALIDATE_ABSOLUTE_PATH_OR_GOTO(name,arg,label) \