diff options
author | Steve French <sfrench@us.ibm.com> | 2005-10-11 19:58:06 -0700 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-10-11 19:58:06 -0700 |
commit | 1047abc159b4eb4ba4a7342a0969e16e9d4b4c69 (patch) | |
tree | 532cf6200f2c63869f006dfad2b41d9d408a9a59 /fs/cifs/netmisc.c | |
parent | 4ca9c190d902caa7efb899a4c7fc8c6e6d926e95 (diff) | |
download | linux-1047abc159b4eb4ba4a7342a0969e16e9d4b4c69.tar.bz2 |
[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) if (smb->Flags2 & SMBFLG2_ERR_STATUS) { /* translate the newer STATUS codes to old style errors and then to POSIX errors */ __u32 err = le32_to_cpu(smb->Status.CifsError); - if(cifsFYI) + if(cifsFYI & CIFS_RC) cifs_print_status(err); ntstatus_to_dos(err, &smberrclass, &smberrcode); } else { |