summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-06-02 06:31:41 +0000
committeralc <alc@FreeBSD.org>2002-06-02 06:31:41 +0000
commit6c9e59ad0036cf371711ed760fde503eb6ce580e (patch)
tree9b6871fa4f7f0d3f438c55160a531a8ac9062169 /sys/vm/vm_object.c
parent3ff28a5819e5627cd1f0beaf945d5e5543ccf5d1 (diff)
downloadFreeBSD-src-6c9e59ad0036cf371711ed760fde503eb6ce580e.zip
FreeBSD-src-6c9e59ad0036cf371711ed760fde503eb6ce580e.tar.gz
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.
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index d4fe3f3..2760eba 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:
OpenPOWER on IntegriCloud