Three changes to vm_phys_alloc_seg_contig():
- Optimize the order computation.
- Update the pool for all of the chunks that are removed from the free page lists, and not just the first chunk.
- Simplify the code for returning excess pages to the free page lists.
Reviewed by: Doug Moore <dougm@rice.edu>