summaryrefslogtreecommitdiff
path: root/fs/afs/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-04-06 16:17:26 +0300
committerDavid Howells <dhowells@redhat.com>2018-04-09 23:54:48 +0300
commit76a5cb6fc1e22a2a316fb690fc4cdd5121d1c0ff (patch)
tree46916422df7fc81adfdf0eeec0491398cff2d8fb /fs/afs/internal.h
parent5f702c8e124f967146a735a19f0b00a2469487d1 (diff)
downloadlinux-76a5cb6fc1e22a2a316fb690fc4cdd5121d1c0ff.tar.xz
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>
Diffstat (limited to 'fs/afs/internal.h')
-rw-r--r--fs/afs/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h
index 6ae023cbf00e..f6b44f47732d 100644
--- a/fs/afs/internal.h
+++ b/fs/afs/internal.h
@@ -273,6 +273,10 @@ struct afs_net {
atomic_t n_read_dir; /* Number of directory pages read */
atomic_t n_dir_cr; /* Number of directory entry creation edits */
atomic_t n_dir_rm; /* Number of directory entry removal edits */
+ atomic_t n_stores; /* Number of store ops */
+ atomic_long_t n_store_bytes; /* Number of bytes stored */
+ atomic_long_t n_fetch_bytes; /* Number of bytes fetched */
+ atomic_t n_fetches; /* Number of data fetch ops */
};
extern const char afs_init_sysname[];