Lines Matching refs:db_agfree
207 bmp->db_agfree[i] = le64_to_cpu(dbmp_le->dn_agfree[i]); in dbMount()
305 dbmp_le->dn_agfree[i] = cpu_to_le64(bmp->db_agfree[i]); in dbSync()
633 (bmp->db_agfree[agpref] >= avgfree)) in dbNextAG()
646 if (bmp->db_agfree[agpref] >= avgfree) { in dbNextAG()
650 } else if (bmp->db_agfree[agpref] > hwm) { in dbNextAG()
652 hwm = bmp->db_agfree[agpref]; in dbNextAG()
1348 || bmp->db_agfree[agno] == bmp->db_agsize) { in dbAllocAG()
1351 (bmp->db_agfree[agno] == bmp->db_agsize)) { in dbAllocAG()
1582 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
1605 if (bmp->db_agfree[agno] == 0) in dbDiscardAG()
1609 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
2237 bmp->db_agfree[agno] -= nblocks; in dbAllocBits()
2377 bmp->db_agfree[agno] += nblocks; in dbFreeBits()
2384 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits()
2386 bmp->db_agfree[agno] == (bmp-> db_mapsize & (BPERDMAP - 1)))) { in dbFreeBits()
2389 if (bmp->db_agfree[bmp->db_maxag] != in dbFreeBits()
3293 bmp->db_agfree[agno] -= nblocks; in dbAllocDmapBU()
3384 ag_rem = bmp->db_agfree[0]; /* save agfree[0] */ in dbExtendFS()
3386 bmp->db_agfree[n] = 0; /* init collection point */ in dbExtendFS()
3391 bmp->db_agfree[n] += bmp->db_agfree[i]; in dbExtendFS()
3394 bmp->db_agfree[0] += ag_rem; /* restore agfree[0] */ in dbExtendFS()
3397 bmp->db_agfree[n] = 0; in dbExtendFS()
3521 bmp->db_agfree[agno] += n; in dbExtendFS()
3643 if (bmp->db_agfree[bmp->db_agpref] < avgfree) { in dbFinalizeBmap()
3646 if (bmp->db_agfree[bmp->db_agpref] >= avgfree) in dbFinalizeBmap()