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

index 44fc2fc6221b0253f9b70bc94ed6855c87bda6c6..ff8294a1a573393e051188242ea9a50aeddcc547 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