Skip to content

Commit

Permalink
unexport put_mnt_ns(), make create_mnt_ns() static outright
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent aafd08d commit 6c449c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2444,7 +2444,7 @@ struct mnt_namespace *copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns,
* create_mnt_ns - creates a private namespace and adds a root filesystem
* @mnt: pointer to the new root filesystem mountpoint
*/
struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt)
static struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt)
{
struct mnt_namespace *new_ns;

Expand All @@ -2459,7 +2459,6 @@ struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt)
}
return new_ns;
}
EXPORT_SYMBOL(create_mnt_ns);

struct dentry *mount_subtree(struct vfsmount *mnt, const char *name)
{
Expand Down Expand Up @@ -2734,7 +2733,6 @@ void put_mnt_ns(struct mnt_namespace *ns)
release_mounts(&umount_list);
kfree(ns);
}
EXPORT_SYMBOL(put_mnt_ns);

struct vfsmount *kern_mount_data(struct file_system_type *type, void *data)
{
Expand Down
1 change: 0 additions & 1 deletion include/linux/mnt_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ struct proc_mounts {

struct fs_struct;

extern struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt);
extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
struct fs_struct *);
extern void put_mnt_ns(struct mnt_namespace *ns);
Expand Down

0 comments on commit 6c449c8

Please sign in to comment.