summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_mount.c4
-rw-r--r--sys/sys/mount.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 16b6c25..40fd361 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -80,8 +80,6 @@ __FBSDID("$FreeBSD$");
static int vfs_domount(struct thread *td, const char *fstype,
char *fspath, int fsflags, void *fsdata);
-static struct mount *vfs_mount_alloc(struct vnode *dvp, struct vfsconf *vfsp,
- const char *fspath, struct thread *td);
static int vfs_mountroot_ask(void);
static int vfs_mountroot_try(const char *mountfrom);
static int vfs_donmount(struct thread *td, int fsflags,
@@ -465,7 +463,7 @@ mount_fini(void *mem, int size)
/*
* Allocate and initialize the mount point struct.
*/
-static struct mount *
+struct mount *
vfs_mount_alloc(struct vnode *vp, struct vfsconf *vfsp,
const char *fspath, struct thread *td)
{
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 9009e16..9b76c1b 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -682,6 +682,8 @@ void vfs_mountroot(void); /* mount our root filesystem */
void vfs_mountedfrom(struct mount *, const char *from);
void vfs_ref(struct mount *);
void vfs_rel(struct mount *);
+struct mount *vfs_mount_alloc(struct vnode *, struct vfsconf *, const char *,
+ struct thread *);
int vfs_suser(struct mount *, struct thread *);
void vfs_unbusy(struct mount *, struct thread *);
void vfs_unmountall(void);
OpenPOWER on IntegriCloud