Lines Matching refs:s64

77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
83 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
85 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
90 int l2nb, s64 * results);
91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
95 s64 * results);
96 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
97 s64 * results);
98 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
99 s64 * results);
100 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks);
102 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno);
104 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
106 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
109 static int blkstol2(s64 nb);
114 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
116 static int dbInitDmap(struct dmap * dp, s64 blkno, int nblocks);
120 static int dbGetL2AGSize(s64 nblocks);
331 int dbFree(struct inode *ip, s64 blkno, s64 nblocks) in dbFree()
336 s64 lblkno, rem; in dbFree()
425 int free, s64 blkno, s64 nblocks, struct tblock * tblk) in dbUpdatePMap()
430 s64 lblkno, rem, lastlblkno; in dbUpdatePMap()
479 nblks = min(rem, (s64)BPERDMAP - dbitno); in dbUpdatePMap()
605 s64 avgfree; in dbNextAG()
607 s64 hwm = 0; in dbNextAG()
700 int dbAlloc(struct inode *ip, s64 hint, s64 nblocks, s64 * results) in dbAlloc()
706 s64 lblkno, blkno; in dbAlloc()
709 s64 mapSize; in dbAlloc()
893 int dbAllocExact(struct inode *ip, s64 blkno, int nblocks) in dbAllocExact()
899 s64 lblkno; in dbAllocExact()
916 if (nblocks > ((s64) 1 << bmp->db_maxfreebud)) { in dbAllocExact()
979 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results) in dbReAlloc()
1026 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks) in dbExtend()
1029 s64 lblkno, lastblkno, extblkno; in dbExtend()
1125 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, in dbAllocNext()
1258 struct dmap * dp, s64 blkno, int nblocks, int l2nb, s64 * results) in dbAllocNear()
1366 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) in dbAllocAG()
1371 s64 blkno, lblkno; in dbAllocAG()
1386 blkno = (s64) agno << bmp->db_agl2size; in dbAllocAG()
1488 ((s64) (ti - le32_to_cpu(dcp->leafidx))) << budmin; in dbAllocAG()
1564 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results) in dbAllocAny()
1567 s64 blkno = 0; in dbAllocAny()
1619 s64 dbDiscardAG(struct inode *ip, int agno, s64 minlen) in dbDiscardAG()
1623 s64 nblocks, blkno; in dbDiscardAG()
1727 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno) in dbFindCtl()
1730 s64 b, lblkno; in dbFindCtl()
1784 b += (((s64) leafidx) << budmin); in dbFindCtl()
1846 dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, s64 * results) in dbAllocCtl()
1849 s64 b, lblkno, n; in dbAllocCtl()
1905 nb = min_t(s64, n, BPERDMAP); in dbAllocCtl()
1998 struct dmap * dp, int nblocks, int l2nb, s64 * results) in dbAllocDmapLev()
2000 s64 blkno; in dbAllocDmapLev()
2060 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, in dbAllocDmap()
2115 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, in dbFreeDmap()
2177 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, in dbAllocBits()
2324 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno, in dbFreeBits()
2508 dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, int level) in dbAdjCtl()
2513 s64 lblkno; in dbAdjCtl()
3160 static int blkstol2(s64 nb) in blkstol2()
3163 s64 mask; /* meant to be signed */ in blkstol2()
3165 mask = (s64) 1 << (64 - 1); in blkstol2()
3208 int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks) in dbAllocBottomUp()
3213 s64 lblkno, rem; in dbAllocBottomUp()
3263 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno, in dbAllocDmapBU()
3384 int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks) in dbExtendFS()
3389 s64 newsize; in dbExtendFS()
3390 s64 p; in dbExtendFS()
3397 s64 ag_rem; in dbExtendFS()
3559 n = min(nblocks, (s64)BPERDMAP - n); in dbExtendFS()
3567 n = min_t(s64, nblocks, BPERDMAP); in dbExtendFS()
3660 s64 ag_rem, actfree, inactfree, avgfree; in dbFinalizeBmap()
3747 static int dbInitDmap(struct dmap * dp, s64 Blkno, int nblocks) in dbInitDmap()
4004 static int dbGetL2AGSize(s64 nblocks) in dbGetL2AGSize()
4006 s64 sz; in dbGetL2AGSize()
4007 s64 m; in dbGetL2AGSize()
4020 sz = (s64) 1 << l2sz; in dbGetL2AGSize()
4052 s64 dbMapFileSizeToMapSize(struct inode * ipbmap) in dbMapFileSizeToMapSize()
4055 s64 nblocks; in dbMapFileSizeToMapSize()
4056 s64 npages, ndmaps; in dbMapFileSizeToMapSize()