summaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorSteve French2005-10-12 04:58:06 +0200
committerSteve French2005-10-12 04:58:06 +0200
commit1047abc159b4eb4ba4a7342a0969e16e9d4b4c69 (patch)
tree532cf6200f2c63869f006dfad2b41d9d408a9a59 /fs/cifs/connect.c
parent[CIFS] Fix oops in experimental notify code (when CONFIG_CIFS_EXPERIMENTAL (diff)
downloadkernel-qcow2-linux-1047abc159b4eb4ba4a7342a0969e16e9d4b4c69.tar.gz
kernel-qcow2-linux-1047abc159b4eb4ba4a7342a0969e16e9d4b4c69.tar.xz
kernel-qcow2-linux-1047abc159b4eb4ba4a7342a0969e16e9d4b4c69.zip
[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/connect.c')
-rw-r--r--fs/cifs/connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 177289771abe..a8f0cbada0f0 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -605,6 +605,9 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
multi_t2_fnd:
task_to_wake = mid_entry->tsk;
mid_entry->midState = MID_RESPONSE_RECEIVED;
+#ifdef CONFIG_CIFS_STATS2
+ mid_entry->when_received = jiffies;
+#endif
break;
}
}