Lines Matching refs:bpref

105 alloc(struct inode *ip, daddr_t bpref, int size, daddr_t *bnp, cred_t *cr)  in alloc()  argument
138 if (bpref >= fs->fs_size) in alloc()
139 bpref = 0; in alloc()
140 if (bpref == 0) in alloc()
143 cg = dtog(fs, bpref); in alloc()
145 bno = (daddr_t)hashalloc(ip, cg, (long)bpref, size, in alloc()
182 realloccg(struct inode *ip, daddr_t bprev, daddr_t bpref, int osize, in realloccg() argument
229 if (bpref >= fs->fs_size) in realloccg()
230 bpref = 0; in realloccg()
246 bno = (daddr_t)hashalloc(ip, cg, (long)bpref, request, in realloccg()
975 alloccg(struct inode *ip, int cg, daddr_t bpref, int size) in alloccg() argument
1015 if ((bno = alloccgblk(ufsvfsp, cgp, bpref, bp)) == 0) in alloccg()
1038 bno = mapsearch(ufsvfsp, cgp, bpref, allocsiz); in alloccg()
1052 if ((bno = alloccgblk(ufsvfsp, cgp, bpref, bp)) == 0) in alloccg()
1054 bpref = dtogd(fs, bno); in alloccg()
1056 setbit(blksfree, bpref + i); in alloccg()
1106 daddr_t bpref, in alloccgblk() argument
1122 if (bpref == 0) { in alloccgblk()
1123 bpref = cgp->cg_rotor; in alloccgblk()
1126 bpref = blknum(fs, bpref); in alloccgblk()
1127 bpref = dtogd(fs, bpref); in alloccgblk()
1131 if (isblock(fs, blksfree, (daddr_t)fragstoblks(fs, bpref))) { in alloccgblk()
1132 bno = bpref; in alloccgblk()
1138 cylno = cbtocylno(fs, bpref); in alloccgblk()
1146 bpref = howmany(fs->fs_spc * cylno, NSPF(fs)); in alloccgblk()
1155 pos = cbtorpos(ufsvfsp, bpref); in alloccgblk()
1254 bno = mapsearch(ufsvfsp, cgp, bpref, (int)fs->fs_frag); in alloccgblk()
1383 mapsearch(struct ufsvfs *ufsvfsp, struct cg *cgp, daddr_t bpref, int allocsiz) in mapsearch() argument
1398 if (bpref) in mapsearch()
1399 start = dtogd(fs, bpref) / NBBY; in mapsearch()