Unionfs: remove unnecessary parent lock in create
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 25 Dec 2007 22:08:50 +0000 (17:08 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 25 Dec 2007 22:08:50 +0000 (17:08 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index 1255edbeb80aee449a4a0bc382571e2e440d287e..ec5199dfb2cf20ba203526bbfedefb7297ba29b4 100644 (file)
@@ -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