39c39
< * $FreeBSD: head/sys/kern/vfs_vnops.c 55696 2000-01-10 00:08:53Z mckusick $
---
> * $FreeBSD: head/sys/kern/vfs_vnops.c 55756 2000-01-10 12:04:27Z phk $
476,478c476
< } else if ((vp->v_type == VBLK || vp->v_type == VCHR) &&
< devsw(vp->v_rdev) && (devsw(vp->v_rdev)->d_flags & D_DISK)) {
< /* XXX use vn_isdisk() above once VCHR is also disk */
---
> } else if (vn_isdisk(vp, NULL)) {
< * $FreeBSD: head/sys/kern/vfs_vnops.c 55696 2000-01-10 00:08:53Z mckusick $
---
> * $FreeBSD: head/sys/kern/vfs_vnops.c 55756 2000-01-10 12:04:27Z phk $
476,478c476
< } else if ((vp->v_type == VBLK || vp->v_type == VCHR) &&
< devsw(vp->v_rdev) && (devsw(vp->v_rdev)->d_flags & D_DISK)) {
< /* XXX use vn_isdisk() above once VCHR is also disk */
---
> } else if (vn_isdisk(vp, NULL)) {