mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-18 12:45:08 +00:00
prepend_path() needs to reinitialize dentry/vfsmount/mnt on restarts
... and equivalent is needed in 3.12; it's broken there as well Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4ec6c2aeab
commit
ede4cebce1
1 changed files with 6 additions and 3 deletions
|
@ -2912,9 +2912,9 @@ static int prepend_path(const struct path *path,
|
||||||
const struct path *root,
|
const struct path *root,
|
||||||
char **buffer, int *buflen)
|
char **buffer, int *buflen)
|
||||||
{
|
{
|
||||||
struct dentry *dentry = path->dentry;
|
struct dentry *dentry;
|
||||||
struct vfsmount *vfsmnt = path->mnt;
|
struct vfsmount *vfsmnt;
|
||||||
struct mount *mnt = real_mount(vfsmnt);
|
struct mount *mnt;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
unsigned seq, m_seq = 0;
|
unsigned seq, m_seq = 0;
|
||||||
char *bptr;
|
char *bptr;
|
||||||
|
@ -2929,6 +2929,9 @@ restart:
|
||||||
bptr = *buffer;
|
bptr = *buffer;
|
||||||
blen = *buflen;
|
blen = *buflen;
|
||||||
error = 0;
|
error = 0;
|
||||||
|
dentry = path->dentry;
|
||||||
|
vfsmnt = path->mnt;
|
||||||
|
mnt = real_mount(vfsmnt);
|
||||||
read_seqbegin_or_lock(&rename_lock, &seq);
|
read_seqbegin_or_lock(&rename_lock, &seq);
|
||||||
while (dentry != root->dentry || vfsmnt != root->mnt) {
|
while (dentry != root->dentry || vfsmnt != root->mnt) {
|
||||||
struct dentry * parent;
|
struct dentry * parent;
|
||||||
|
|
Loading…
Add table
Reference in a new issue