Lines Matching refs:agpref
631 int agpref; in dbNextAG() local
646 agpref = bmp->db_agpref; in dbNextAG()
647 if ((atomic_read(&bmp->db_active[agpref]) == 0) && in dbNextAG()
648 (bmp->db_agfree[agpref] >= avgfree)) in dbNextAG()
654 for (i = 0 ; i < bmp->db_numag; i++, agpref++) { in dbNextAG()
655 if (agpref >= bmp->db_numag) in dbNextAG()
656 agpref = 0; in dbNextAG()
658 if (atomic_read(&bmp->db_active[agpref])) in dbNextAG()
661 if (bmp->db_agfree[agpref] >= avgfree) { in dbNextAG()
663 bmp->db_agpref = agpref; in dbNextAG()
665 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG()
667 hwm = bmp->db_agfree[agpref]; in dbNextAG()
668 next_best = agpref; in dbNextAG()