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_lookup.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_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index cb418ee..7d31e49 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_lookup.c 8.4 (Berkeley) 2/16/94 - * $Id: vfs_lookup.c,v 1.32 1999/01/27 21:49:58 dillon Exp $ + * $Id: vfs_lookup.c,v 1.33 1999/01/28 00:57:47 dillon Exp $ */ #include "opt_ktrace.h" @@ -163,7 +163,7 @@ namei(ndp) else cnp->cn_flags |= HASBUF; - if (ndp->ni_vp && ndp->ni_vp->v_type == VREG && + if (vn_canvmio(ndp->ni_vp) == TRUE && (cnp->cn_nameiop != DELETE) && ((cnp->cn_flags & (NOOBJ|LOCKLEAF)) == LOCKLEAF)) @@ -687,7 +687,7 @@ relookup(dvp, vpp, cnp) if (!wantparent) vrele(dvp); - if (dp->v_type == VREG && + if (vn_canvmio(dp) == TRUE && ((cnp->cn_flags & (NOOBJ|LOCKLEAF)) == LOCKLEAF)) vfs_object_create(dp, cnp->cn_proc, cnp->cn_cred); |