commit a858290d396cd5aeec363f1e0ae8595effe92e70
Author: Erez Zadok <[EMAIL PROTECTED](none)>
Date: Fri May 18 01:53:12 2007 -0400
bug fix: don't revalidate dropped dentries
This fixes a harmless but annoying message that unionfs prints if a dropped
dentry is being revalidated, which could happen if you unlink open files.
diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index
7a2b2186c02adf06ffdbaa98e9e991a7aff7cdee..bedef96bd5736764d49b05396eb56687562a4ac0
100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -396,9 +396,12 @@ int unionfs_file_revalidate(struct file
unionfs_lock_dentry(dentry);
sb = dentry->d_sb;
- /* first revalidate the dentry inside struct file */
- if (!__unionfs_d_revalidate_chain(dentry, NULL) &&
- !d_deleted(dentry)) {
+ /*
+ * First revalidate the dentry inside struct file,
+ * but not unhashed dentries.
+ */
+ if (!d_deleted(dentry) &&
+ !__unionfs_d_revalidate_chain(dentry, NULL)) {
err = -ESTALE;
goto out_nofree;
}
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs