OSDN Git Service

smb3: fix bytes_read statistics
authorSteve French <stfrench@microsoft.com>
Mon, 11 Feb 2019 21:38:12 +0000 (15:38 -0600)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Mar 2019 02:05:35 +0000 (20:05 -0600)
/proc/fs/cifs/Stats bytes_read was double counting reads when
uncached (ie mounted with cache=none)

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/file.c

index 659ce1b..da1f05f 100644 (file)
@@ -3533,8 +3533,6 @@ again:
                ctx->total_len = ctx->len - iov_iter_count(to);
        }
 
-       cifs_stats_bytes_read(tcon, ctx->total_len);
-
        /* mask nodata case */
        if (rc == -ENODATA)
                rc = 0;