diff options
author | Steve French <sfrench@us.ibm.com> | 2005-12-03 16:58:57 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-12-03 16:58:57 -0500 |
commit | 4498eed50a114565debd38f173acd62cce6e7cb8 (patch) | |
tree | 8a94482e9a7b98bb32aab518a0fce74075eabd2f /fs/cifs/cifsfs.c | |
parent | 84afc29b185334f489975a003b128e1b15e24a54 (diff) |
[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/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 2a13a2bac8f1..ba90903909a6 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -954,6 +954,12 @@ init_cifs(void) | |||
954 | atomic_set(&tconInfoReconnectCount, 0); | 954 | atomic_set(&tconInfoReconnectCount, 0); |
955 | 955 | ||
956 | atomic_set(&bufAllocCount, 0); | 956 | atomic_set(&bufAllocCount, 0); |
957 | atomic_set(&smBufAllocCount, 0); | ||
958 | #ifdef CONFIG_CIFS_STATS2 | ||
959 | atomic_set(&totBufAllocCount, 0); | ||
960 | atomic_set(&totSmBufAllocCount, 0); | ||
961 | #endif /* CONFIG_CIFS_STATS2 */ | ||
962 | |||
957 | atomic_set(&midCount, 0); | 963 | atomic_set(&midCount, 0); |
958 | GlobalCurrentXid = 0; | 964 | GlobalCurrentXid = 0; |
959 | GlobalTotalActiveXid = 0; | 965 | GlobalTotalActiveXid = 0; |