summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorAndy Adamson2012-05-24 19:13:24 +0200
committerTrond Myklebust2012-05-24 22:15:48 +0200
commit2701d086dbfca03b2d28b25c6dc11dd78d0e26ad (patch)
tree69f81dd2a979600cd3ff4f1861c6d7ef5c25b1ed /include/linux/nfs_fs.h
parentNFSv4.1 cache mdsthreshold values on OPEN (diff)
downloadkernel-qcow2-linux-2701d086dbfca03b2d28b25c6dc11dd78d0e26ad.tar.gz
kernel-qcow2-linux-2701d086dbfca03b2d28b25c6dc11dd78d0e26ad.tar.xz
kernel-qcow2-linux-2701d086dbfca03b2d28b25c6dc11dd78d0e26ad.zip
NFSv4.1 add nfs_inode book keeping for mdsthreshold
Keep track of the number of bytes read or written via buffered, direct, and mem-mapped i/o for use by mdsthreshold size_io hints. Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index ce910cb7d761..b23cfc120edb 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -202,6 +202,9 @@ struct nfs_inode {
/* pNFS layout information */
struct pnfs_layout_hdr *layout;
#endif /* CONFIG_NFS_V4*/
+ /* how many bytes have been written/read and how many bytes queued up */
+ __u64 write_io;
+ __u64 read_io;
#ifdef CONFIG_NFS_FSCACHE
struct fscache_cookie *fscache;
#endif