aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-08-21 00:42:53 -0400
committerSteve French <sfrench@us.ibm.com>2005-08-21 00:42:53 -0400
commita5a2b489bae8f66559a531df99a26eb16b42299e (patch)
tree080a579fe5e5382dc3493e302174b9c584964be4 /fs/cifs/cifsglob.h
parent646352319b6cd369750a706706810d87f6b6efa7 (diff)
[CIFS] Make CIFS statistics more accurate and add some stats that were
missing. Most importantly SMB reads were undercounted. Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index e7ba48c61a7a..6a8c7d1bee8c 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -215,6 +215,7 @@ struct cifsTconInfo {
215 atomic_t num_reads; 215 atomic_t num_reads;
216 atomic_t num_oplock_brks; 216 atomic_t num_oplock_brks;
217 atomic_t num_opens; 217 atomic_t num_opens;
218 atomic_t num_closes;
218 atomic_t num_deletes; 219 atomic_t num_deletes;
219 atomic_t num_mkdirs; 220 atomic_t num_mkdirs;
220 atomic_t num_rmdirs; 221 atomic_t num_rmdirs;
@@ -223,10 +224,27 @@ struct cifsTconInfo {
223 atomic_t num_ffirst; 224 atomic_t num_ffirst;
224 atomic_t num_fnext; 225 atomic_t num_fnext;
225 atomic_t num_fclose; 226 atomic_t num_fclose;
227 atomic_t num_hardlinks;
228 atomic_t num_symlinks;
229 atomic_t num_locks;
230#ifdef CONFIG_CIFS_STATS2
231 unsigned long long time_writes;
232 unsigned long long time_reads;
233 unsigned long long time_opens;
234 unsigned long long time_deletes;
235 unsigned long long time_closes;
236 unsigned long long time_mkdirs;
237 unsigned long long time_rmdirs;
238 unsigned long long time_renames;
239 unsigned long long time_t2renames;
240 unsigned long long time_ffirst;
241 unsigned long long time_fnext;
242 unsigned long long time_fclose;
243#endif /* CONFIG_CIFS_STATS2 */
226 __u64 bytes_read; 244 __u64 bytes_read;
227 __u64 bytes_written; 245 __u64 bytes_written;
228 spinlock_t stat_lock; 246 spinlock_t stat_lock;
229#endif 247#endif /* CONFIG_CIFS_STATS */
230 FILE_SYSTEM_DEVICE_INFO fsDevInfo; 248 FILE_SYSTEM_DEVICE_INFO fsDevInfo;
231 FILE_SYSTEM_ATTRIBUTE_INFO fsAttrInfo; /* ok if file system name truncated */ 249 FILE_SYSTEM_ATTRIBUTE_INFO fsAttrInfo; /* ok if file system name truncated */
232 FILE_SYSTEM_UNIX_INFO fsUnixInfo; 250 FILE_SYSTEM_UNIX_INFO fsUnixInfo;