Lines Matching refs:agpref
606 int agpref; in dbNextAG() local
621 agpref = bmp->db_agpref; in dbNextAG()
622 if ((atomic_read(&bmp->db_active[agpref]) == 0) && in dbNextAG()
623 (bmp->db_agfree[agpref] >= avgfree)) in dbNextAG()
629 for (i = 0 ; i < bmp->db_numag; i++, agpref++) { in dbNextAG()
630 if (agpref == bmp->db_numag) in dbNextAG()
631 agpref = 0; in dbNextAG()
633 if (atomic_read(&bmp->db_active[agpref])) in dbNextAG()
636 if (bmp->db_agfree[agpref] >= avgfree) { in dbNextAG()
638 bmp->db_agpref = agpref; in dbNextAG()
640 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG()
642 hwm = bmp->db_agfree[agpref]; in dbNextAG()
643 next_best = agpref; in dbNextAG()