On Wed, 2012-08-08 at 10:03 +0800, Peng Tao wrote: > From: Peng Tao <tao.peng@xxxxxxx> > > We don't have the real IO size information in buffer read, but for direct > read, we can get it from dreq->bytes_left. Let's make use of it. What's wrong with using the nfs_readpages arguments? The readahead code will tell you exactly how many pages it is trying to read. -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@xxxxxxxxxx www.netapp.com ��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥