diff options
author | alc <alc@FreeBSD.org> | 1999-07-26 06:25:53 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-07-26 06:25:53 +0000 |
commit | 743eeab6387e1bb4e8c0134b6cf783d15d5bf129 (patch) | |
tree | 1c227b00b4f99df82f922790089168cfa562386a /sys/kern/vfs_export.c | |
parent | 922ea3fe71ba55c7293626ade2f2f82545bcbd94 (diff) | |
download | FreeBSD-src-743eeab6387e1bb4e8c0134b6cf783d15d5bf129.zip FreeBSD-src-743eeab6387e1bb4e8c0134b6cf783d15d5bf129.tar.gz |
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
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r-- | sys/kern/vfs_export.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index fddda87..53069af 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.212 1999/07/19 09:37:59 phk Exp $ + * $Id: vfs_subr.c,v 1.213 1999/07/20 09:47:44 phk Exp $ */ /* @@ -2622,12 +2622,12 @@ vfs_object_create(vp, p, cred) vm_object_t object; int error = 0; - if ((vp->v_type != VREG) && (vp->v_type != VBLK)) + if (vp->v_type != VBLK && vn_canvmio(vp) == FALSE) return 0; retry: if ((object = vp->v_object) == NULL) { - if (vp->v_type == VREG) { + if (vp->v_type == VREG || vp->v_type == VDIR) { if ((error = VOP_GETATTR(vp, &vat, cred, p)) != 0) goto retn; object = vnode_pager_alloc(vp, vat.va_size, 0, 0); |