diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-26 00:08:05 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-26 00:08:05 +0000 |
commit | f883ef447af57985b21cde8cd13232ca845190a4 (patch) | |
tree | d2fcc74cff2c1c1ff478c189a5bc5cafc79d4509 /sys/vm/vm_fault.c | |
parent | 9e3e7670a88869e7b562b5608cd584c56c3a6517 (diff) | |
download | FreeBSD-src-f883ef447af57985b21cde8cd13232ca845190a4.zip FreeBSD-src-f883ef447af57985b21cde8cd13232ca845190a4.tar.gz |
Implement kern.maxvnodes. adjusting kern.maxvnodes now actually has a
real effect.
Optimize vfs_msync(). Avoid having to continually drop and re-obtain
mutexes when scanning the vnode list. Improves looping case by 500%.
Optimize ffs_sync(). Avoid having to continually drop and re-obtain
mutexes when scanning the vnode list. This makes a couple of assumptions,
which I believe are ok, in regards to vnode stability when the mount list
mutex is held. Improves looping case by 500%.
(more optimization work is needed on top of these fixes)
MFC after: 1 week
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 3507353..8814ae5 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -806,8 +806,7 @@ readrest: if (prot & VM_PROT_WRITE) { vm_page_flag_set(fs.m, PG_WRITEABLE); - vm_object_set_flag(fs.m->object, - OBJ_WRITEABLE|OBJ_MIGHTBEDIRTY); + vm_object_set_writeable_dirty(fs.m->object); /* * If the fault is a write, we know that this page is being |