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_page.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_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 61d821f..0eb06fc 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -609,7 +609,7 @@ vm_page_insert(vm_page_t m, vm_object_t object, vm_pindex_t pindex) * update the object's OBJ_WRITEABLE and OBJ_MIGHTBEDIRTY flags. */ if (m->flags & PG_WRITEABLE) - vm_object_set_flag(object, OBJ_WRITEABLE|OBJ_MIGHTBEDIRTY); + vm_object_set_writeable_dirty(object); } /* |