From: Erez Zadok Date: Thu, 10 Jan 2008 12:01:48 +0000 (-0500) Subject: Unionfs: remove unnecessary parent lock in create X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=5dee3207d9fcce4e3d28dfaf7948be49f9367d10;p=unionfs-odf.git Unionfs: remove unnecessary parent lock in create Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index fb6b65a69f..a837817784 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