Skip to content

Commit e9496ff

Browse files
author
Al Viro
committed
fix mismerge with Trond's stuff (create_mnt_ns() export is gone now)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent b0446be commit e9496ff

3 files changed

Lines changed: 1 addition & 11 deletions

File tree

‎fs/namespace.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ struct mnt_namespace *copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns,
20682068
* create_mnt_ns - creates a private namespace and adds a root filesystem
20692069
* @mnt: pointer to the new root filesystem mountpoint
20702070
*/
2071-
struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt)
2071+
static struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt)
20722072
{
20732073
struct mnt_namespace *new_ns;
20742074

@@ -2080,7 +2080,6 @@ struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt)
20802080
}
20812081
return new_ns;
20822082
}
2083-
EXPORT_SYMBOL(create_mnt_ns);
20842083

20852084
SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name,
20862085
char __user *, type, unsigned long, flags, void __user *, data)

‎fs/nfs/super.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,21 +2648,13 @@ static void nfs_fix_devname(const struct path *path, struct vfsmount *mnt)
26482648
static int nfs_follow_remote_path(struct vfsmount *root_mnt,
26492649
const char *export_path, struct vfsmount *mnt_target)
26502650
{
2651-
struct mnt_namespace *ns_private;
26522651
struct nameidata nd;
26532652
struct super_block *s;
26542653
int ret;
26552654

2656-
ns_private = create_mnt_ns(root_mnt);
2657-
ret = PTR_ERR(ns_private);
2658-
if (IS_ERR(ns_private))
2659-
goto out_mntput;
2660-
26612655
ret = vfs_path_lookup(root_mnt->mnt_root, root_mnt,
26622656
export_path, LOOKUP_FOLLOW, &nd);
26632657

2664-
put_mnt_ns(ns_private);
2665-
26662658
if (ret != 0)
26672659
goto out_err;
26682660

‎include/linux/mnt_namespace.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct proc_mounts {
2323

2424
struct fs_struct;
2525

26-
extern struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt);
2726
extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
2827
struct fs_struct *);
2928
extern void put_mnt_ns(struct mnt_namespace *ns);

0 commit comments

Comments
 (0)