]> err.no Git - linux-2.6/commitdiff
NFS: Don't zap the readdir caches upon error
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Oct 2007 23:02:07 +0000 (19:02 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:20:13 +0000 (17:20 -0400)
If necessary, the caches will get zapped under normal revalidation.

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

index 0cc798b40cd7d5f11bbf88c9e56ff6e9f2c1f7e5..393c48136919100d0a89ecf36f4d212cc1bb3ee1 100644 (file)
@@ -211,9 +211,7 @@ int nfs_readdir_filler(nfs_readdir_descriptor_t *desc, struct page *page)
        unlock_page(page);
        return 0;
  error:
-       SetPageError(page);
        unlock_page(page);
-       nfs_zap_caches(inode);
        desc->error = error;
        return -EIO;
 }