diff options
author | phk <phk@FreeBSD.org> | 2004-10-29 11:15:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-29 11:15:08 +0000 |
commit | c928cc4c546f34011ddc8bb00e0f6c9e4fab7a46 (patch) | |
tree | 15b7e9811bfe8fc5a54fe18aaafe45a7a1ffd598 /sys | |
parent | 5637a20bbe42fe61852e15dd0dd33674f676b1e5 (diff) | |
download | FreeBSD-src-c928cc4c546f34011ddc8bb00e0f6c9e4fab7a46.zip FreeBSD-src-c928cc4c546f34011ddc8bb00e0f6c9e4fab7a46.tar.gz |
Loose vfs_mountedon()
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 eb1134c..e54148d 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 b9cade4..c60e302 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 *); |