summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index a44fa140711..ff120b78e79 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.39 1999/05/31 17:34:48 millert Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.40 1999/08/08 00:34:38 niklas Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -1214,6 +1214,23 @@ vfinddev(dev, type, vpp)
}
/*
+ * Revoke all the vnodes corresponding to the specified minor number
+ * range (endpoints inclusive) of the specified major.
+ */
+void
+vdevgone(maj, minl, minh, type)
+ int maj, minl, minh;
+ enum vtype type;
+{
+ struct vnode *vp;
+ int mn;
+
+ for (mn = minl; mn <= minh; mn++)
+ if (vfinddev(makedev(maj, mn), type, &vp))
+ VOP_REVOKE(vp, REVOKEALL);
+}
+
+/*
* Calculate the total number of references to a special device.
*/
int