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@cs.sunysb.edu>
* 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);