summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index d612fc9..3b1f0d2 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -2633,8 +2633,9 @@ loop:
if (vmio) {
bp->b_flags |= B_VMIO;
#if defined(VFS_BIO_DEBUG)
- if (vp->v_type != VREG)
- printf("getblk: vmioing file type %d???\n", vp->v_type);
+ if (vn_canvmio(vp) != TRUE)
+ printf("getblk: VMIO on vnode type %d\n",
+ vp->v_type);
#endif
VOP_GETVOBJECT(vp, &bp->b_object);
} else {
OpenPOWER on IntegriCloud