afs: Add stats for data transfer operations
authorDavid Howells <dhowells@redhat.com>
Fri, 6 Apr 2018 13:17:26 +0000 (14:17 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 9 Apr 2018 20:54:48 +0000 (21:54 +0100)
commit76a5cb6fc1e22a2a316fb690fc4cdd5121d1c0ff
tree46916422df7fc81adfdf0eeec0491398cff2d8fb
parent5f702c8e124f967146a735a19f0b00a2469487d1
afs: Add stats for data transfer operations

Add statistics to /proc/fs/afs/stats for data transfer RPC operations.  New
lines are added that look like:

file-rd : n=55794 nb=10252282150
file-wr : n=9789 nb=3247763645

where n= indicates the number of ops completed and nb= indicates the number
of bytes successfully transferred.  file-rd is the counts for read/fetch
operations and file-wr the counts for write/store operations.

Note that directory and symlink downloading are included in the file-rd
stats at the moment.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/file.c
fs/afs/internal.h
fs/afs/proc.c
fs/afs/write.c