GIT: unionfs2-2.6.27.y: bug fix: prevent null mntget warning messages in unionfs_lookup_backend

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


commit aeac34a461b63ea45f624a54b175dc0fc2601302
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date:   Mon May 28 19:38:14 2007 -0400

    bug fix: prevent null mntget warning messages in unionfs_lookup_backend
    
    Don't try to mntget a lower mnt at a point where the lower mnts don't yet
    exist (the callers will have them later on).  Instead, get the lower mnt of
    the sb->s_root.
    
    Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>

diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index 6409387..ead0c6a 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -328,7 +328,7 @@ out_negative:
 		 * mount-point crossing
 		 */
 		first_dentry = dentry;
-		first_hidden_mnt = unionfs_mntget(dentry, bindex);
+		first_hidden_mnt = unionfs_mntget(dentry->d_sb->s_root, bindex);
 	}
 	unionfs_set_lower_dentry_idx(dentry, first_dentry_offset,
 				     first_hidden_dentry);


More information about the unionfs-cvs mailing list