From 72353893d4090b0ef155d60f138a2ffffef56781 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 2 Jun 2002 06:31:41 +0000 Subject: [PATCH] o Condition vm_object_pmap_copy_1()'s compilation on the kernel option ENABLE_VFS_IOOPT. Unless this option is in effect, vm_object_pmap_copy_1() is not used. --- sys/vm/vm_object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index d4fe3f3458d4..2760eba72350 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -920,6 +920,7 @@ vm_object_page_collect_flush(vm_object_t object, vm_page_t p, int curgeneration, return(maxf + 1); } +#ifdef ENABLE_VFS_IOOPT /* * Same as vm_object_pmap_copy, except range checking really * works, and is meant for small sections of an object. @@ -949,6 +950,7 @@ vm_object_pmap_copy_1(vm_object_t object, vm_pindex_t start, vm_pindex_t end) vm_page_protect(p, VM_PROT_READ); } } +#endif /* * vm_object_pmap_remove: