From cb199c1bdd827d8e3147953281eebb8eea36d259 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 5 Jul 2024 05:42:08 +0000 Subject: [PATCH] remove unused vn_isdisk(), added for softdep ok kn@ --- sys/kern/vfs_subr.c | 14 +------------- sys/sys/vnode.h | 3 +-- 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 #include 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 */ -- 2.20.1