lkml.org 
[lkml]   [2007]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 18/30] Unionfs: remove unnecessary parent lock in create
    Date
    Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
    ---
    fs/unionfs/inode.c | 7 -------
    1 files changed, 0 insertions(+), 7 deletions(-)

    diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
    index 7ec9c1b..3df9b19 100644
    --- a/fs/unionfs/inode.c
    +++ b/fs/unionfs/inode.c
    @@ -32,13 +32,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
    --
    1.5.2.2


    \
     
     \ /
      Last update: 2007-12-28 21:59    [W:6.783 / U:1.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site