diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 5812a03578fb..a173a6356833 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -406,7 +406,7 @@ vop_stdcreatevobject(ap) if ((error = VOP_GETATTR(vp, &vat, cred, td)) != 0) goto retn; object = vnode_pager_alloc(vp, vat.va_size, 0, 0); - } else if (devsw(vp->v_rdev) != NULL) { + } else if (vn_isdisk(vp)) { /* * This simply allocates the biggest object possible * for a disk vnode. This should be fixed, but doesn't