summaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2012-05-24 13:13:24 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-24 16:15:48 -0400
commit2701d086dbfca03b2d28b25c6dc11dd78d0e26ad (patch)
tree69f81dd2a979600cd3ff4f1861c6d7ef5c25b1ed /fs/nfs/file.c
parent82be417aa37c05116e310b0f2171187ea389f89b (diff)
downloadop-kernel-dev-2701d086dbfca03b2d28b25c6dc11dd78d0e26ad.zip
op-kernel-dev-2701d086dbfca03b2d28b25c6dc11dd78d0e26ad.tar.gz
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 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 8eda8a6..56311ca 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -424,6 +424,7 @@ static int nfs_write_end(struct file *file, struct address_space *mapping,
if (status < 0)
return status;
+ NFS_I(mapping->host)->write_io += copied;
return copied;
}
OpenPOWER on IntegriCloud