]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Unix CM: Update AFS_STATS_NUM_FS_RPC_OPS
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 28 Feb 2013 17:05:29 +0000 (17:05 +0000)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 26 Mar 2013 13:20:38 +0000 (06:20 -0700)
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.

Reviewed-on: http://gerrit.openafs.org/9313
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 2c8e4f839fc253abb8051bbf89d36e94a2200590)

Change-Id: Id6094e6e5007984cb080281f6a085eba958d6367
Reviewed-on: http://gerrit.openafs.org/9540
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs_stats.h

index 6179d425d5f32411fc726b4379c6a9a4b547af3f..d7abda4e497a6939c61602bdb0f4d32370d6aaff 100644 (file)
@@ -865,7 +865,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))