From 101914f949aa57392e914eeef3fed749eb754df8 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 25 Dec 2007 17:08:50 -0500 Subject: [PATCH] Unionfs: remove unnecessary parent lock in create Signed-off-by: Erez Zadok --- fs/unionfs/inode.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 1255edbeb80..ec5199dfb2c 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 -- 2.43.0