From 743eeab6387e1bb4e8c0134b6cf783d15d5bf129 Mon Sep 17 00:00:00 2001 From: alc Date: Mon, 26 Jul 1999 06:25:53 +0000 Subject: Add sysctl and support code to allow directories to be VMIO'd. The default setting for the sysctl is OFF, which is the historical operation. Submitted by: dillon --- sys/kern/vfs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/vfs_vnops.c') diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 87cdac2..04c5ef5 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94 - * $Id: vfs_vnops.c,v 1.69 1999/07/02 16:29:15 phk Exp $ + * $Id: vfs_vnops.c,v 1.70 1999/07/08 06:05:56 mckusick Exp $ */ #include @@ -171,7 +171,7 @@ vn_open(ndp, fmode, cmode) /* * Make sure that a VM object is created for VMIO support. */ - if (vp->v_type == VREG) { + if (vn_canvmio(vp) == TRUE) { if ((error = vfs_object_create(vp, p, cred)) != 0) goto bad; } -- cgit v1.1