commit b17e340e3ea36ce842ae306b3dbdb9034dc83db7
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Fri Sep 19 19:26:55 2008 -0400

    Unionfs: initialize lower mnt in lookup after vfs_path_lookup
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index 5c9da03..ba9f5c7 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -324,7 +324,9 @@ struct dentry *unionfs_lookup_full(struct dentry *dentry,
                        goto out_free;
                }
                unionfs_set_lower_dentry_idx(dentry, bindex, lower_dentry);
-               BUG_ON(!lower_mnt);
+               if (!lower_mnt)
+                       lower_mnt = unionfs_mntget(dentry->d_sb->s_root,
+                                                  bindex);
                unionfs_set_lower_mnt_idx(dentry, bindex, lower_mnt);
 
                /* adjust dbstart/end */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to