Lines Matching refs:db_agfree
198 bmp->db_agfree[i] = le64_to_cpu(dbmp_le->dn_agfree[i]); in dbMount()
290 dbmp_le->dn_agfree[i] = cpu_to_le64(bmp->db_agfree[i]); in dbSync()
618 (bmp->db_agfree[agpref] >= avgfree)) in dbNextAG()
631 if (bmp->db_agfree[agpref] >= avgfree) { in dbNextAG()
635 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG()
637 hwm = bmp->db_agfree[agpref]; in dbNextAG()
1333 || bmp->db_agfree[agno] == bmp->db_agsize) { in dbAllocAG()
1336 (bmp->db_agfree[agno] == bmp->db_agsize)) { in dbAllocAG()
1567 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
1590 if (bmp->db_agfree[agno] == 0) in dbDiscardAG()
1594 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
2222 bmp->db_agfree[agno] -= nblocks; in dbAllocBits()
2362 bmp->db_agfree[agno] += nblocks; in dbFreeBits()
2369 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits()
2371 bmp->db_agfree[agno] == (bmp-> db_mapsize & (BPERDMAP - 1)))) { in dbFreeBits()
2374 if (bmp->db_agfree[bmp->db_maxag] != in dbFreeBits()
3278 bmp->db_agfree[agno] -= nblocks; in dbAllocDmapBU()
3369 ag_rem = bmp->db_agfree[0]; /* save agfree[0] */ in dbExtendFS()
3371 bmp->db_agfree[n] = 0; /* init collection point */ in dbExtendFS()
3376 bmp->db_agfree[n] += bmp->db_agfree[i]; in dbExtendFS()
3379 bmp->db_agfree[0] += ag_rem; /* restore agfree[0] */ in dbExtendFS()
3382 bmp->db_agfree[n] = 0; in dbExtendFS()
3506 bmp->db_agfree[agno] += n; in dbExtendFS()
3628 if (bmp->db_agfree[bmp->db_agpref] < avgfree) { in dbFinalizeBmap()
3631 if (bmp->db_agfree[bmp->db_agpref] >= avgfree) in dbFinalizeBmap()