summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorups <ups@FreeBSD.org>2008-05-20 19:05:43 +0000
committerups <ups@FreeBSD.org>2008-05-20 19:05:43 +0000
commitfbd329664f5e1e99035c0b473a42b33812b91466 (patch)
tree122fb04f7bf2895af8ccd1d933a2cf8c59347db2 /sys/vm/vm_object.h
parent8a663465644dd0d19159348afb69bb2462822ed1 (diff)
downloadFreeBSD-src-fbd329664f5e1e99035c0b473a42b33812b91466.zip
FreeBSD-src-fbd329664f5e1e99035c0b473a42b33812b91466.tar.gz
Allow VM object creation in ufs_lookup. (If vfs.vmiodirenable is set)
Directory IO without a VM object will store data in 'malloced' buffers severely limiting caching of the data. Without this change VM objects for directories are only created on an open() of the directory. TODO: Inline test if VM object already exists to avoid locking/function call overhead. Tested by: kris@ Reviewed by: jeff@ Reported by: David Filo
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 4f9cad4..e6f605a 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -202,6 +202,7 @@ void _vm_object_allocate (objtype_t, vm_pindex_t, vm_object_t);
boolean_t vm_object_coalesce(vm_object_t, vm_ooffset_t, vm_size_t, vm_size_t);
void vm_object_collapse (vm_object_t);
void vm_object_deallocate (vm_object_t);
+void vm_object_destroy (vm_object_t);
void vm_object_terminate (vm_object_t);
void vm_object_set_writeable_dirty (vm_object_t);
void vm_object_init (void);
OpenPOWER on IntegriCloud