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.8.0_pre1^2~3548 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4e9a49c58aa1a6c910b01fe995739d0852c75dd4;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. Change-Id: I5698f8861af1b5e9771d138ca93a28f676df349b Reviewed-on: http://gerrit.openafs.org/4989 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 8e7d33767..196bcf8c0 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -4922,7 +4922,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 3a9d474bc..661e28359 100644 --- a/src/afs/afs_stats.h +++ b/src/afs/afs_stats.h @@ -655,6 +655,7 @@ struct afs_CMCallStats { 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 {