Lines Matching refs:BPERDMAP
382 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); in dbFree()
477 dbitno = blkno & (BPERDMAP - 1); in dbUpdatePMap()
479 nblks = min(rem, (s64)BPERDMAP - dbitno); in dbUpdatePMap()
775 if (nblocks <= BPERDMAP) { in dbAlloc()
911 if (nblocks <= 0 || nblocks > BPERDMAP || blkno >= bmp->db_mapsize) { in dbAllocExact()
1070 if (addnblocks > BPERDMAP || extblkno >= bmp->db_mapsize || in dbExtend()
1145 dbitno = blkno & (BPERDMAP - 1); in dbAllocNext()
1151 if (dbitno + nblocks > BPERDMAP) in dbAllocNext()
1274 word = (blkno & (BPERDMAP - 1)) >> L2DBWORD; in dbAllocNear()
1405 if (bmp->db_agsize == BPERDMAP in dbAllocAG()
1878 assert((blkno & (BPERDMAP - 1)) == 0); in dbAllocCtl()
1905 nb = min_t(s64, n, BPERDMAP); in dbAllocCtl()
1935 n -= BPERDMAP, b += BPERDMAP) { in dbAllocCtl()
1952 if (dbFreeDmap(bmp, dp, b, BPERDMAP)) { in dbAllocCtl()
2138 word = (blkno & (BPERDMAP - 1)) >> L2DBWORD; in dbFreeDmap()
2191 dbitno = blkno & (BPERDMAP - 1); in dbAllocBits()
2195 assert(dbitno + nblocks <= BPERDMAP); in dbAllocBits()
2335 dbitno = blkno & (BPERDMAP - 1); in dbFreeBits()
2340 assert(dbitno + nblocks <= BPERDMAP); in dbFreeBits()
2444 bmp->db_agfree[agno] == (bmp-> db_mapsize & (BPERDMAP - 1)))) { in dbFreeBits()
3244 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); in dbAllocBottomUp()
3279 dbitno = blkno & (BPERDMAP - 1); in dbAllocDmapBU()
3283 assert(dbitno + nblocks <= BPERDMAP); in dbAllocDmapBU()
3553 if ((n = blkno & (BPERDMAP - 1))) { in dbExtendFS()
3559 n = min(nblocks, (s64)BPERDMAP - n); in dbExtendFS()
3567 n = min_t(s64, nblocks, BPERDMAP); in dbExtendFS()
3752 blkno = Blkno & (BPERDMAP - 1); in dbInitDmap()
3758 if (nblocks == BPERDMAP) { in dbInitDmap()
3809 if (blkno == BPERDMAP) in dbInitDmap()
4010 if (nblocks < BPERDMAP * MAXAG) in dbGetL2AGSize()