commit 4d167ebabc25b52a5fc360fa1c17aa907240f976
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date:   Mon May 28 21:15:43 2007 -0400

    more (forgotten) cleanups to partial_lookup.
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index 
e6827faa8478f10c12707620973bc5c6890041e8..c42778011a0e8a86e7b0481cb5f9ca0551b10259
 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -375,7 +375,9 @@ int unionfs_partial_lookup(struct dentry
                err = PTR_ERR(tmp);
                goto out;
        }
-       err = 0;
+       if (tmp)
+               goto out;
+
        if (UNIONFS_D(dentry) && !UNIONFS_D(dentry)->odf.dentry) {
                tmp = unionfs_lower_dentry_idx(dentry, 0);
                if (dentry->d_inode || (tmp && tmp->d_inode)) {
@@ -385,10 +387,11 @@ int unionfs_partial_lookup(struct dentry
                        BUG_ON(!UNIONFS_D(dentry)->odf.dentry);
                }
        }
+       err = 0;
 
+out:
        /* need to change the interface */
        BUG_ON(tmp != dentry);
-out:
        return err;
 }
 
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to