From: Simon Wilkinson Date: Thu, 28 Feb 2013 17:05:29 +0000 (+0000) Subject: Unix CM: Update AFS_STATS_NUM_FS_RPC_OPS X-Git-Tag: upstream/1.8.0_pre1^2~1381 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2c8e4f839fc253abb8051bbf89d36e94a2200590;p=packages%2Fo%2Fopenafs.git Unix CM: Update AFS_STATS_NUM_FS_RPC_OPS There are actually 30 elements in the AFS_STATS_FS array. When the ResidencyRpcs counter was added, the total number of operations wasn't updated. Fix this so that it is correct, although this still remains rather fragile. Change-Id: I92a0d2bf3741bc7aaeae837d6dcbcd30616e17ae Reviewed-on: http://gerrit.openafs.org/9313 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/afs/afs_stats.h b/src/afs/afs_stats.h index 1c0feb37b..71e337e63 100644 --- a/src/afs/afs_stats.h +++ b/src/afs/afs_stats.h @@ -871,7 +871,7 @@ struct afs_stats_CMPerf { #define AFS_STATS_FS_RPCIDX_XLOOKUP 28 #define AFS_STATS_FS_RPCIDX_RESIDENCYRPCS 29 -#define AFS_STATS_NUM_FS_RPC_OPS 29 +#define AFS_STATS_NUM_FS_RPC_OPS 30 #define AFS_STATS_FS_RPCIDXES_ISWRITE(X) (((X > AFS_STATS_FS_RPCIDX_FETCHSTATUS) && (X < AFS_STATS_FS_RPCIDX_GETSTATISTICS)) || (X == AFS_STATS_FS_RPCIDX_SETVOLUMESTATUS)) #define AFS_STATS_FS_RPCIDXES_WRITE_RETRIABLE(X) ((X >= AFS_STATS_FS_RPCIDX_STOREDATA) && (X <= AFS_STATS_FS_RPCIDX_STORESTATUS))