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.
This commit is contained in:
parent
6e330f3e36
commit
72353893d4
@ -920,6 +920,7 @@ vm_object_page_collect_flush(vm_object_t object, vm_page_t p, int curgeneration,
|
|||||||
return(maxf + 1);
|
return(maxf + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_VFS_IOOPT
|
||||||
/*
|
/*
|
||||||
* Same as vm_object_pmap_copy, except range checking really
|
* Same as vm_object_pmap_copy, except range checking really
|
||||||
* works, and is meant for small sections of an object.
|
* 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);
|
vm_page_protect(p, VM_PROT_READ);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* vm_object_pmap_remove:
|
* vm_object_pmap_remove:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user