NFS: Optimise the readdir searches
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 24 Sep 2010 22:49:43 +0000 (18:49 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Oct 2010 19:27:30 +0000 (15:27 -0400)
commitbaf57a09e9d87b14be5e2788828169394a2525ab
tree77b35fe3ef7868f3c642093a4a8c01ed6be584cd
parentd1bacf9eb2fd0e7ef870acf84b9e3b157dcfa7dc
NFS: Optimise the readdir searches

If we're going through the loop in nfs_readdir() more than once, we usually
do not want to restart searching from the beginning of the pages cache.

We only want to do that if the previous search failed...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c