commit a00af0ccec1f376c12144c4befb9c69ca969201a
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Tue Dec 25 17:03:29 2007 -0500

    Unionfs: remove unnecessary parent lock in create
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
index 44fc2fc..ff8294a 100644
--- a/fs/unionfs/inode.c
+++ b/fs/unionfs/inode.c
@@ -31,13 +31,6 @@ static int unionfs_create(struct inode *parent, struct 
dentry *dentry,
        unionfs_read_lock(dentry->d_sb);
        unionfs_lock_dentry(dentry);
 
-       unionfs_lock_dentry(dentry->d_parent);
-       valid = __unionfs_d_revalidate_chain(dentry->d_parent, nd, false);
-       unionfs_unlock_dentry(dentry->d_parent);
-       if (unlikely(!valid)) {
-               err = -ESTALE;  /* same as what real_lookup does */
-               goto out;
-       }
        valid = __unionfs_d_revalidate_chain(dentry, nd, false);
        /*
         * It's only a bug if this dentry was not negative and couldn't be
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to