mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] kill altroot
long overdue... Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
8bb79224b8
commit
7f2da1e7d0
31 changed files with 5 additions and 466 deletions
|
|
@ -1972,7 +1972,7 @@ static struct mnt_namespace *dup_mnt_ns(struct mnt_namespace *mnt_ns,
|
|||
struct fs_struct *fs)
|
||||
{
|
||||
struct mnt_namespace *new_ns;
|
||||
struct vfsmount *rootmnt = NULL, *pwdmnt = NULL, *altrootmnt = NULL;
|
||||
struct vfsmount *rootmnt = NULL, *pwdmnt = NULL;
|
||||
struct vfsmount *p, *q;
|
||||
|
||||
new_ns = kmalloc(sizeof(struct mnt_namespace), GFP_KERNEL);
|
||||
|
|
@ -2015,10 +2015,6 @@ static struct mnt_namespace *dup_mnt_ns(struct mnt_namespace *mnt_ns,
|
|||
pwdmnt = p;
|
||||
fs->pwd.mnt = mntget(q);
|
||||
}
|
||||
if (p == fs->altroot.mnt) {
|
||||
altrootmnt = p;
|
||||
fs->altroot.mnt = mntget(q);
|
||||
}
|
||||
}
|
||||
p = next_mnt(p, mnt_ns->root);
|
||||
q = next_mnt(q, new_ns->root);
|
||||
|
|
@ -2029,8 +2025,6 @@ static struct mnt_namespace *dup_mnt_ns(struct mnt_namespace *mnt_ns,
|
|||
mntput(rootmnt);
|
||||
if (pwdmnt)
|
||||
mntput(pwdmnt);
|
||||
if (altrootmnt)
|
||||
mntput(altrootmnt);
|
||||
|
||||
return new_ns;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue