summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-07-05 05:42:09 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-07-05 05:42:09 +0000
commit3efac1e8014219973387afc14fb257cb358ced76 (patch)
treeb2737d60e576017c390424d99d9dd0c7e18c28eb /sys
parent3b9f575353354ea50652e2a2f76e0f803a85a03f (diff)
remove unused vn_isdisk(), added for softdep
ok kn@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_subr.c14
-rw-r--r--sys/sys/vnode.h3
2 files changed, 2 insertions, 15 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 41c73c797e6..05c114c6525 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.319 2024/02/03 18:51:58 beck Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.320 2024/07/05 05:42:08 jsg Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -2225,18 +2225,6 @@ reassignbuf(struct buf *bp)
bufinsvn(bp, listheadp);
}
-/*
- * Check if vnode represents a disk device
- */
-int
-vn_isdisk(struct vnode *vp, int *errp)
-{
- if (vp->v_type != VBLK && vp->v_type != VCHR)
- return (0);
-
- return (1);
-}
-
#ifdef DDB
#include <machine/db_machdep.h>
#include <ddb/db_interface.h>
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 23eebf37146..b97d486f14b 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnode.h,v 1.170 2024/02/03 18:51:58 beck Exp $ */
+/* $OpenBSD: vnode.h,v 1.171 2024/07/05 05:42:08 jsg Exp $ */
/* $NetBSD: vnode.h,v 1.38 1996/02/29 20:59:05 cgd Exp $ */
/*
@@ -642,7 +642,6 @@ void vn_initialize_syncerd(void);
void vn_syncer_add_to_worklist(struct vnode *, int);
/* misc */
-int vn_isdisk(struct vnode *, int *);
int getvnode(struct proc *, int, struct file **);
/* uvm */