Skip to contentSkip to conversation

NFS: Don't call nfs_renew_times() in nfs_dentry_iput()

PATCH New Chuck Lever 1 participant 1 message Sep 24, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/7 NFS: Don't call nfs_renew_times() in nfs_dentry_iput()

Negative dentries need to be reverified after an asynchronous unlink.

Quoth Trond:

"Unfortunately I don't think that we can avoid revalidating the resulting negative dentry since the UNLINK call is asynchronous, and so the new verifier on the directory will only be known a posteriori."

---

 fs/nfs/dir.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/nfs/dir.c +0 -2
index 44d298b..3235ef5 100644
@@ -872,8 +872,6 @@ static void nfs_dentry_iput(struct dentry *dentry, struct inode *inode)
 		nfs_complete_unlink(dentry, inode);
 		unlock_kernel();
 	}
-	/* When creating a negative dentry, we want to renew d_time */
-	nfs_renew_times(dentry);
 	iput(inode);
 }
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs