diff options
| author | Raghavendra G <raghavendra@gluster.com> | 2009-10-07 10:08:51 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-07 23:04:26 -0700 | 
| commit | 42d58aad9175e2eb086cf8113d65f53ee8aabbee (patch) | |
| tree | 2b26461198b0fca9c4eb091f3628e49a3bfbd3bb /libglusterfs | |
| parent | 64bba90418fd037708f38c4a4e0b73c89a11ea5f (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: 284 (performance actually decreases for 'ls -l' on a directory containing large number of files with stat-prefetch loaded)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=284
Diffstat (limited to 'libglusterfs')
| -rw-r--r-- | libglusterfs/src/common-utils.h | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 649f9b0220f..7e0b6468644 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)       \  | 
