Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b050aa79 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Don't zap the readdir caches upon error



If necessary, the caches will get zapped under normal revalidation.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent efbb06b7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
}