From 4e9a49c58aa1a6c910b01fe995739d0852c75dd4 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 13 Jul 2011 13:53:08 +0100 Subject: [PATCH] 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 --- src/afs/afs_pioctl.c | 2 +- src/afs/afs_stats.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.5