From: Trond Myklebust Date: Tue, 2 Oct 2007 23:02:07 +0000 (-0400) Subject: NFS: Don't zap the readdir caches upon error X-Git-Tag: v2.6.24-rc1~1285^2~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b050aa791fad6b060d6ff59305f01289e18b058c;p=linux-2.6 NFS: Don't zap the readdir caches upon error If necessary, the caches will get zapped under normal revalidation. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 0cc798b40c..393c481369 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -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; }