Lines Matching refs:db_agfree
221 bmp->db_agfree[i] = le64_to_cpu(dbmp_le->dn_agfree[i]); in dbMount()
320 dbmp_le->dn_agfree[i] = cpu_to_le64(bmp->db_agfree[i]); in dbSync()
648 (bmp->db_agfree[agpref] >= avgfree)) in dbNextAG()
661 if (bmp->db_agfree[agpref] >= avgfree) { in dbNextAG()
665 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG()
667 hwm = bmp->db_agfree[agpref]; in dbNextAG()
1431 || bmp->db_agfree[agno] == bmp->db_agsize) { in dbAllocAG()
1434 (bmp->db_agfree[agno] == bmp->db_agsize)) { in dbAllocAG()
1665 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
1688 if (bmp->db_agfree[agno] == 0) in dbDiscardAG()
1692 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
2323 bmp->db_agfree[agno] -= nblocks; in dbAllocBits()
2463 bmp->db_agfree[agno] += nblocks; in dbFreeBits()
2470 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits()
2472 bmp->db_agfree[agno] == (bmp-> db_mapsize & (BPERDMAP - 1)))) { in dbFreeBits()
2475 if (bmp->db_agfree[bmp->db_maxag] != in dbFreeBits()
3390 bmp->db_agfree[agno] -= nblocks; in dbAllocDmapBU()
3481 ag_rem = bmp->db_agfree[0]; /* save agfree[0] */ in dbExtendFS()
3483 bmp->db_agfree[n] = 0; /* init collection point */ in dbExtendFS()
3488 bmp->db_agfree[n] += bmp->db_agfree[i]; in dbExtendFS()
3491 bmp->db_agfree[0] += ag_rem; /* restore agfree[0] */ in dbExtendFS()
3494 bmp->db_agfree[n] = 0; in dbExtendFS()
3618 bmp->db_agfree[agno] += n; in dbExtendFS()
3740 if (bmp->db_agfree[bmp->db_agpref] < avgfree) { in dbFinalizeBmap()
3743 if (bmp->db_agfree[bmp->db_agpref] >= avgfree) in dbFinalizeBmap()