Lines Matching refs:db_agfree
203 bmp->db_agfree[i] = le64_to_cpu(dbmp_le->dn_agfree[i]); in dbMount()
295 dbmp_le->dn_agfree[i] = cpu_to_le64(bmp->db_agfree[i]); in dbSync()
617 (bmp->db_agfree[agpref] >= avgfree)) in dbNextAG()
630 if (bmp->db_agfree[agpref] >= avgfree) { in dbNextAG()
634 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG()
636 hwm = bmp->db_agfree[agpref]; in dbNextAG()
1405 || bmp->db_agfree[agno] == bmp->db_agsize) { in dbAllocAG()
1408 (bmp->db_agfree[agno] == bmp->db_agsize)) { in dbAllocAG()
2188 bmp->db_agfree[agno] -= nblocks; in dbAllocBits()
2328 bmp->db_agfree[agno] += nblocks; in dbFreeBits()
2335 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits()
2337 bmp->db_agfree[agno] == (bmp-> db_mapsize & (BPERDMAP - 1)))) { in dbFreeBits()
2340 if (bmp->db_agfree[bmp->db_maxag] != in dbFreeBits()
3245 bmp->db_agfree[agno] -= nblocks; in dbAllocDmapBU()
3336 ag_rem = bmp->db_agfree[0]; /* save agfree[0] */ in dbExtendFS()
3338 bmp->db_agfree[n] = 0; /* init collection point */ in dbExtendFS()
3343 bmp->db_agfree[n] += bmp->db_agfree[i]; in dbExtendFS()
3346 bmp->db_agfree[0] += ag_rem; /* restore agfree[0] */ in dbExtendFS()
3349 bmp->db_agfree[n] = 0; in dbExtendFS()
3473 bmp->db_agfree[agno] += n; in dbExtendFS()
3596 if (bmp->db_agfree[bmp->db_agpref] < avgfree) { in dbFinalizeBmap()
3599 if (bmp->db_agfree[bmp->db_agpref] >= avgfree) in dbFinalizeBmap()