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>
This commit is contained in:

committed by
Trond Myklebust

parent
82be417aa3
commit
2701d086db
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user