commit 6b672dbc7222eef40ea2418d981b65ce49809135
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Tue May 29 13:54:55 2007 -0400
cleaned up partial_lookup
diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index c427780..33d0a7e 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -376,22 +376,18 @@ int unionfs_partial_lookup(struct dentry *dentry)
goto out;
}
if (tmp)
- goto out;
+ dentry = tmp;
+ /* make sure the dentry has its odf info */
if (UNIONFS_D(dentry) && !UNIONFS_D(dentry)->odf.dentry) {
- tmp = unionfs_lower_dentry_idx(dentry, 0);
- if (dentry->d_inode || (tmp && tmp->d_inode)) {
- err = odf_lookup(dentry->d_parent, dentry, 0);
- if (err)
- goto out;
- BUG_ON(!UNIONFS_D(dentry)->odf.dentry);
- }
+ err = odf_lookup(dentry->d_parent, dentry, 0);
+ BUG_ON(dentry->d_inode && !UNIONFS_D(dentry)->odf.dentry);
}
err = 0;
out:
/* need to change the interface */
- BUG_ON(tmp != dentry);
+ /* BUG_ON(tmp != dentry); */
return err;
}
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs