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_bio.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_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index a0731eb..d3a668e 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -11,7 +11,7 @@ * 2. Absolutely no warranty of function or purpose is made by the author * John S. Dyson. * - * $Id: vfs_bio.c,v 1.222 1999/07/08 17:58:55 mckusick Exp $ + * $Id: vfs_bio.c,v 1.223 1999/07/09 16:41:19 peter Exp $ */ /* @@ -83,6 +83,7 @@ static void buf_daemon __P((void)); */ vm_page_t bogus_page; int runningbufspace; +int vmiodirenable = FALSE; static vm_offset_t bogus_offset; static int bufspace, maxbufspace, vmiospace, @@ -136,6 +137,8 @@ SYSCTL_INT(_vfs, OID_AUTO, getnewbufcalls, CTLFLAG_RW, &getnewbufcalls, 0, ""); SYSCTL_INT(_vfs, OID_AUTO, getnewbufrestarts, CTLFLAG_RW, &getnewbufrestarts, 0, ""); +SYSCTL_INT(_vfs, OID_AUTO, vmiodirenable, CTLFLAG_RW, + &vmiodirenable, 0, ""); static int bufhashmask; |