diff options
author | Steve French <sfrench@us.ibm.com> | 2005-12-03 21:58:57 (GMT) |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-12-03 21:58:57 (GMT) |
commit | 4498eed50a114565debd38f173acd62cce6e7cb8 (patch) | |
tree | 8a94482e9a7b98bb32aab518a0fce74075eabd2f /fs/cifs/cifsglob.h | |
parent | 84afc29b185334f489975a003b128e1b15e24a54 (diff) | |
download | linux-fsl-qoriq-4498eed50a114565debd38f173acd62cce6e7cb8.tar.xz |
[CIFS] Add extended stats (STATS2) for total buffer allocations for
better performance debugging.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 1ba08f8..c011c27 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -505,8 +505,12 @@ GLOBAL_EXTERN atomic_t tcpSesReconnectCount; GLOBAL_EXTERN atomic_t tconInfoReconnectCount; /* Various Debug counters to remove someday (BB) */ -GLOBAL_EXTERN atomic_t bufAllocCount; -GLOBAL_EXTERN atomic_t smBufAllocCount; +GLOBAL_EXTERN atomic_t bufAllocCount; /* current number allocated */ +#ifdef CONFIG_CIFS_STATS2 +GLOBAL_EXTERN atomic_t totBufAllocCount; /* total allocated over all time */ +GLOBAL_EXTERN atomic_t totSmBufAllocCount; +#endif +GLOBAL_EXTERN atomic_t smBufAllocCount; GLOBAL_EXTERN atomic_t midCount; /* Misc globals */ |