Lines Matching refs:db_agfree

227 		bmp->db_agfree[i] = le64_to_cpu(dbmp_le->dn_agfree[i]);  in dbMount()
326 dbmp_le->dn_agfree[i] = cpu_to_le64(bmp->db_agfree[i]); in dbSync()
654 (bmp->db_agfree[agpref] >= avgfree)) in dbNextAG()
667 if (bmp->db_agfree[agpref] >= avgfree) { in dbNextAG()
671 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG()
673 hwm = bmp->db_agfree[agpref]; in dbNextAG()
1437 || bmp->db_agfree[agno] == bmp->db_agsize) { in dbAllocAG()
1440 (bmp->db_agfree[agno] == bmp->db_agsize)) { in dbAllocAG()
1671 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
1694 if (bmp->db_agfree[agno] == 0) in dbDiscardAG()
1698 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
2329 bmp->db_agfree[agno] -= nblocks; in dbAllocBits()
2469 bmp->db_agfree[agno] += nblocks; in dbFreeBits()
2476 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits()
2478 bmp->db_agfree[agno] == (bmp-> db_mapsize & (BPERDMAP - 1)))) { in dbFreeBits()
2481 if (bmp->db_agfree[bmp->db_maxag] != in dbFreeBits()
3381 bmp->db_agfree[agno] -= nblocks; in dbAllocDmapBU()
3472 ag_rem = bmp->db_agfree[0]; /* save agfree[0] */ in dbExtendFS()
3474 bmp->db_agfree[n] = 0; /* init collection point */ in dbExtendFS()
3479 bmp->db_agfree[n] += bmp->db_agfree[i]; in dbExtendFS()
3482 bmp->db_agfree[0] += ag_rem; /* restore agfree[0] */ in dbExtendFS()
3485 bmp->db_agfree[n] = 0; in dbExtendFS()
3609 bmp->db_agfree[agno] += n; in dbExtendFS()
3731 if (bmp->db_agfree[bmp->db_agpref] < avgfree) { in dbFinalizeBmap()
3734 if (bmp->db_agfree[bmp->db_agpref] >= avgfree) in dbFinalizeBmap()