From 7760d8409f58ad76a73dddb4a4cc1bd00c7591be Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Tue, 17 Apr 2007 21:14:06 +0000 Subject: [PATCH] Export vfs_mount_alloc() as it is used in ZFS. --- sys/kern/vfs_mount.c | 4 +--- sys/sys/mount.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 16b6c25f872..40fd3613e9e 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 9009e16880d..9b76c1bc62c 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);