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/netmisc.c | |
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/netmisc.c')
-rw-r--r-- | fs/cifs/netmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 29e6efc5597c..f7814689844b 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c | |||
@@ -813,7 +813,7 @@ map_smb_to_linux_error(struct smb_hdr *smb) | |||
813 | if (smb->Flags2 & SMBFLG2_ERR_STATUS) { | 813 | if (smb->Flags2 & SMBFLG2_ERR_STATUS) { |
814 | /* translate the newer STATUS codes to old style errors and then to POSIX errors */ | 814 | /* translate the newer STATUS codes to old style errors and then to POSIX errors */ |
815 | __u32 err = le32_to_cpu(smb->Status.CifsError); | 815 | __u32 err = le32_to_cpu(smb->Status.CifsError); |
816 | if(cifsFYI) | 816 | if(cifsFYI & CIFS_RC) |
817 | cifs_print_status(err); | 817 | cifs_print_status(err); |
818 | ntstatus_to_dos(err, &smberrclass, &smberrcode); | 818 | ntstatus_to_dos(err, &smberrclass, &smberrcode); |
819 | } else { | 819 | } else { |