Commit 6e046b55 authored by J. R. Okajima's avatar J. R. Okajima
Browse files

aufs: v5.12-rc1 idmapper userns 2/2, set path->mnt earlier



To make aufs internal functions can prepare 'userns' for VFS internal
functions.
Signed-off-by: default avatarJ. R. Okajima <hooanon05g@gmail.com>
parent 85fab2b2
......@@ -254,6 +254,7 @@ static int au_dr_hino(struct super_block *sb, aufs_bindex_t bindex,
err = PTR_ERR(hinopath.dentry);
if (IS_ERR(hinopath.dentry))
goto out_unlock;
hinopath.mnt = path->mnt;
err = 0;
flags = O_RDONLY;
......@@ -284,7 +285,6 @@ static int au_dr_hino(struct super_block *sb, aufs_bindex_t bindex,
}
flags = O_WRONLY;
}
hinopath.mnt = path->mnt;
hinofile = vfsub_dentry_open(&hinopath, flags);
if (suspend)
au_hn_inode_unlock(hdir);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment