diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-10-29 11:15:08 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-10-29 11:15:08 +0000 |
| commit | 996b2c82ca05682c1f0f205036348e7b43c78fc7 (patch) | |
| tree | 15b7e9811bfe8fc5a54fe18aaafe45a7a1ffd598 /sys | |
| parent | 7229625e6d399971bdad6a206a6fa2f6cb798b54 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/vfs_subr.c | 13 | ||||
| -rw-r--r-- | sys/sys/mount.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index eb1134c50559d..e54148d790c6e 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2998,19 +2998,6 @@ SYSCTL_PROC(_kern, KERN_VNODE, vnode, CTLTYPE_OPAQUE|CTLFLAG_RD, #endif /* - * Check to see if a filesystem is mounted on a block device. - */ -int -vfs_mountedon(vp) - struct vnode *vp; -{ - - if (vp->v_rdev->si_mountpoint != NULL) - return (EBUSY); - return (0); -} - -/* * Unmount all filesystems. The list is traversed in reverse order * of mounting to avoid dependencies. */ diff --git a/sys/sys/mount.h b/sys/sys/mount.h index b9cade4524f7c..c60e302866761 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -583,7 +583,6 @@ void vfs_getnewfsid(struct mount *); struct cdev *vfs_getrootfsid(struct mount *); struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */ int vfs_modevent(module_t, int, void *); -int vfs_mountedon(struct vnode *); /* is a vfs mounted on vp */ void vfs_mountroot(void); /* mount our root filesystem */ int vfs_rootmountalloc(char *, char *, struct mount **); void vfs_mount_destroy(struct mount *, struct thread *); |
