GIT: unionfs2-2.6.27.y: Unionfs: initialize lower mnt in lookup after vfs_path_lookup

Erez Zadok ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:18:08 EDT 2010


commit fd026942007dd005cd4b1194af352297d29674d8
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date:   Wed Aug 20 13:04:27 2008 -0400

    Unionfs: initialize lower mnt in lookup after vfs_path_lookup
    
    Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>

diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index 0a9602a..a3b4235 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -392,7 +392,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 */


More information about the unionfs-cvs mailing list