diff options
author | Steve French <sfrench@us.ibm.com> | 2005-10-11 22:58:06 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-10-11 22:58:06 -0400 |
commit | 1047abc159b4eb4ba4a7342a0969e16e9d4b4c69 (patch) | |
tree | 532cf6200f2c63869f006dfad2b41d9d408a9a59 /fs/cifs/cifsglob.h | |
parent | 4ca9c190d902caa7efb899a4c7fc8c6e6d926e95 (diff) |
[CIFS] CIFS Stats improvements
New cifs_writepages routine was not updated bytes written in cifs stats.
Also added ability to clear /proc/fs/cifs/Stats by writing (0 or 1) to it.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 729717281b40..839a55667c3c 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -377,7 +377,11 @@ struct mid_q_entry { | |||
377 | __u16 mid; /* multiplex id */ | 377 | __u16 mid; /* multiplex id */ |
378 | __u16 pid; /* process id */ | 378 | __u16 pid; /* process id */ |
379 | __u32 sequence_number; /* for CIFS signing */ | 379 | __u32 sequence_number; /* for CIFS signing */ |
380 | struct timeval when_sent; /* time when smb sent */ | 380 | unsigned long when_alloc; /* when mid was created */ |
381 | #ifdef CONFIG_CIFS_STATS2 | ||
382 | unsigned long when_sent; /* time when smb send finished */ | ||
383 | unsigned long when_received; /* when demux complete (taken off wire) */ | ||
384 | #endif | ||
381 | struct cifsSesInfo *ses; /* smb was sent to this server */ | 385 | struct cifsSesInfo *ses; /* smb was sent to this server */ |
382 | struct task_struct *tsk; /* task waiting for response */ | 386 | struct task_struct *tsk; /* task waiting for response */ |
383 | struct smb_hdr *resp_buf; /* response buffer */ | 387 | struct smb_hdr *resp_buf; /* response buffer */ |