linux/fs/cifs
Steve French c281bc0c74 smb3: fix reset of bytes read and written stats
echo 0 > /proc/fs/cifs/Stats is supposed to reset the stats
but there were four (see example below) that were not reset
(bytes read and witten, total vfs ops and max ops
at one time).

...
0 session 0 share reconnects
Total vfs operations: 100 maximum at one time: 2

1) \\localhost\test
SMBs: 0
Bytes read: 502092  Bytes written: 31457286
TreeConnects: 0 total 0 failed
TreeDisconnects: 0 total 0 failed
...

This patch fixes cifs_stats_proc_write to properly reset
those four.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
2018-08-07 14:20:22 -05:00
..
asn1.c
cache.c cifs: use 64-bit timestamps for fscache 2018-08-07 14:15:41 -05:00
cifs_debug.c smb3: fix reset of bytes read and written stats 2018-08-07 14:20:22 -05:00
cifs_debug.h
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c cifs: Make sure all data pages are signed correctly 2018-08-07 14:15:41 -05:00
cifsfs.c smb3: snapshot mounts are read-only and make sure info is displayable about the mount 2018-08-07 14:15:56 -05:00
cifsfs.h
cifsglob.h cifs: simple stats should always be enabled 2018-08-07 14:20:22 -05:00
cifspdu.h
cifsproto.h cifs: use timespec64 internally 2018-08-07 14:15:41 -05:00
cifssmb.c cifs: use timespec64 internally 2018-08-07 14:15:41 -05:00
connect.c smb3: add reconnect tracepoints 2018-08-07 14:20:22 -05:00
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c
fscache.c cifs: use 64-bit timestamps for fscache 2018-08-07 14:15:41 -05:00
fscache.h cifs: use 64-bit timestamps for fscache 2018-08-07 14:15:41 -05:00
inode.c smb3: simplify code by removing CONFIG_CIFS_SMB311 2018-08-07 14:15:56 -05:00
ioctl.c
Kconfig cifs: simple stats should always be enabled 2018-08-07 14:20:22 -05:00
link.c smb3: don't request leases in symlink creation and query 2018-08-07 14:15:57 -05:00
Makefile
misc.c cifs: simple stats should always be enabled 2018-08-07 14:20:22 -05:00
netmisc.c cifs: use timespec64 internally 2018-08-07 14:15:41 -05:00
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c
smb1ops.c cifs: simple stats should always be enabled 2018-08-07 14:20:22 -05:00
smb2file.c cifs: Fix stack out-of-bounds in smb{2,3}_create_lease_buf() 2018-07-05 13:48:25 -05:00
smb2glob.h
smb2inode.c cifs: use a refcount to protect open/closing the cached file handle 2018-08-07 14:20:22 -05:00
smb2maperror.c
smb2misc.c smb3: simplify code by removing CONFIG_CIFS_SMB311 2018-08-07 14:15:56 -05:00
smb2ops.c smb3: display bytes_read and bytes_written in smb3 stats 2018-08-07 14:20:22 -05:00
smb2pdu.c cifs: simple stats should always be enabled 2018-08-07 14:20:22 -05:00
smb2pdu.h smb3: add support for statfs for smb3.1.1 posix extensions 2018-08-07 14:15:41 -05:00
smb2proto.h cifs: use a refcount to protect open/closing the cached file handle 2018-08-07 14:20:22 -05:00
smb2status.h
smb2transport.c smb3: simplify code by removing CONFIG_CIFS_SMB311 2018-08-07 14:15:56 -05:00
smbdirect.c cifs: fix SMB1 breakage 2018-07-05 13:48:24 -05:00
smbdirect.h cifs: fix SMB1 breakage 2018-07-05 13:48:24 -05:00
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h smb3: add reconnect tracepoints 2018-08-07 14:20:22 -05:00
transport.c smb3: add reconnect tracepoints 2018-08-07 14:20:22 -05:00
winucase.c
xattr.c