commit a3561600a06502d2ace40238f645a0af602c6db7
Author: Erez_Zadok <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index
ad78e667c8852f8c8a95322b47431e59daea654a..7cc37e79462441081d6b1d47226e85d52749e4a6
100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -237,7 +237,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);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs