|
@@ -262,9 +262,11 @@ nfs_file_read(struct kiocb *iocb, const struct iovec *iov,
|
|
(unsigned long) count, (unsigned long) pos);
|
|
(unsigned long) count, (unsigned long) pos);
|
|
|
|
|
|
result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping);
|
|
result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping);
|
|
- nfs_add_stats(inode, NFSIOS_NORMALREADBYTES, count);
|
|
|
|
- if (!result)
|
|
|
|
|
|
+ if (!result) {
|
|
result = generic_file_aio_read(iocb, iov, nr_segs, pos);
|
|
result = generic_file_aio_read(iocb, iov, nr_segs, pos);
|
|
|
|
+ if (result > 0)
|
|
|
|
+ nfs_add_stats(inode, NFSIOS_NORMALREADBYTES, result);
|
|
|
|
+ }
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|