Index: sys/uvm/uvm_page.c =================================================================== RCS file: /cvsroot/src/sys/uvm/uvm_page.c,v retrieving revision 1.190 diff -u -p -r1.190 uvm_page.c --- sys/uvm/uvm_page.c 23 Dec 2016 07:15:28 -0000 1.190 +++ sys/uvm/uvm_page.c 23 Dec 2016 09:26:57 -0000 @@ -619,9 +619,9 @@ uvm_page_physget_freelist(paddr_t *paddr /* pass 1: try allocating from a matching end */ #if (VM_PHYSSEG_STRAT == VM_PSTRAT_BIGFIRST) - for (lcv = uvm_physseg_get_last() ; uvm_physseg_valid_p(lcv) ; lcv = uvm_physseg_get_prev(lcv)) + for (lcv = uvm_physseg_get_last(); uvm_physseg_valid_p(lcv); lcv = uvm_physseg_get_prev(lcv)) #else - for (lcv = uvm_physseg_get_first() ; uvm_physseg_valid_p(lcv) ; lcv = uvm_physseg_get_next(lcv)) + for (lcv = uvm_physseg_get_first(); uvm_physseg_valid_p(lcv); lcv = uvm_physseg_get_next(lcv)) #endif { if (uvm.page_init_done == true) @@ -633,13 +633,13 @@ uvm_page_physget_freelist(paddr_t *paddr continue; } else return true; - + } /* pass2: forget about matching ends, just allocate something */ #if (VM_PHYSSEG_STRAT == VM_PSTRAT_BIGFIRST) - for (lcv = uvm_physseg_get_last() ; uvm_physseg_valid_p(lcv); lcv = uvm_physseg_get_prev(lcv)) + for (lcv = uvm_physseg_get_last(); uvm_physseg_valid_p(lcv); lcv = uvm_physseg_get_prev(lcv)) #else - for (lcv = uvm_physseg_get_first() ; uvm_physseg_valid_p(lcv) ; lcv = uvm_physseg_get_next(lcv)) + for (lcv = uvm_physseg_get_first(); uvm_physseg_valid_p(lcv); lcv = uvm_physseg_get_next(lcv)) #endif { /* Try the front regardless. */ @@ -649,7 +649,6 @@ uvm_page_physget_freelist(paddr_t *paddr } else return true; } - } return false; }