From: Simon Wilkinson Date: Wed, 13 Jul 2011 12:53:08 +0000 (+0100) Subject: libafs: Fix statistics for PrefetchFromTape pioctl X-Git-Tag: upstream/1.6.3^2~54 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ebca99d0b193cd3a720e26fa59b629b70f3dc929;p=packages%2Fo%2Fopenafs.git libafs: Fix statistics for PrefetchFromTape pioctl The PrefetchFromTape pioctl was overloading SetAcl's statistics. Give it a slot of its own. 1.6-only: Also give a slot for the master-only PSetTokens2, so xstat data will be more consistent across versions. Reviewed-on: http://gerrit.openafs.org/4989 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 4e9a49c58aa1a6c910b01fe995739d0852c75dd4) Change-Id: I718585a6ff6fcb39469bd6a007e6ebd2b59ef4fa Reviewed-on: http://gerrit.openafs.org/9468 Reviewed-by: Derrick Brashear Reviewed-by: Andrew Deason Reviewed-by: Stephan Wiesand Tested-by: BuildBot --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 98919a344..e941d2681 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -4880,7 +4880,7 @@ DECL_PIOCTL(PPrefetchFromTape) struct vcache *tvc; struct rx_connection *rxconn; - AFS_STATCNT(PSetAcl); + AFS_STATCNT(PPrefetchFromTape); if (!avc) return EINVAL; diff --git a/src/afs/afs_stats.h b/src/afs/afs_stats.h index d7abda4e4..3dcee64e5 100644 --- a/src/afs/afs_stats.h +++ b/src/afs/afs_stats.h @@ -657,6 +657,8 @@ struct afs_CMCallStats { afs_int32 C_SRXAFSCB_GetCellByNum; /* afs_callback.c */ afs_int32 C_BPrefetchNoCache; /* afs_daemons.c */ afs_int32 C_afs_ReadNoCache; /* osi_vnodeops.c */ + afs_int32 C_PSetTokens2; /* afs_pioctl.c */ + afs_int32 C_PPrefetchFromTape; /* afs_pioctl.c */ }; struct afs_CMMeanStats {