Files
ubports_kernel_google_msm/fs/namespace.c.rej

28 lines
677 B
Plaintext

--- fs/namespace.c
+++ fs/namespace.c
@@ -1326,24 +1326,6 @@ void drop_collected_mounts(struct vfsmount *mnt)
release_mounts(&umount_list);
}
-struct vfsmount *clone_private_mount(struct path *path)
-{
- struct mount *old_mnt = real_mount(path->mnt);
- struct mount *new_mnt;
-
- if (IS_MNT_UNBINDABLE(old_mnt))
- return ERR_PTR(-EINVAL);
-
- down_read(&namespace_sem);
- new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE);
- up_read(&namespace_sem);
- if (!new_mnt)
- return ERR_PTR(-ENOMEM);
-
- return &new_mnt->mnt;
-}
-EXPORT_SYMBOL_GPL(clone_private_mount);
-
int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
struct vfsmount *root)
{