commit 5758beeed79a9e752b5a2e3ecc7869628676b00f
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 e6827fa..c427780 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -375,7 +375,9 @@ int unionfs_partial_lookup(struct dentry *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 *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