Lines Matching refs:bpref
176 ffs_alloc(struct inode *ip, daddr_t lbn, daddr_t bpref, int size, in ffs_alloc() argument
252 if (bpref >= fs->fs_size) in ffs_alloc()
253 bpref = 0; in ffs_alloc()
254 if (bpref == 0) in ffs_alloc()
257 cg = dtog(fs, bpref); in ffs_alloc()
258 bno = ffs_hashalloc(ip, cg, bpref, size, 0, flags, ffs_alloccg); in ffs_alloc()
307 ffs_realloccg(struct inode *ip, daddr_t lbprev, daddr_t bprev, daddr_t bpref, in ffs_realloccg() argument
435 if (bpref >= fs->fs_size) in ffs_realloccg()
436 bpref = 0; in ffs_realloccg()
490 bno = ffs_hashalloc(ip, cg, bpref, request, nsize, 0, ffs_alloccg); in ffs_realloccg()
1051 ffs_alloccg(struct inode *ip, u_int cg, daddr_t bpref, int size, int realsize, in ffs_alloccg() argument
1085 blkno = ffs_alloccgblk(ip, bp, bpref, realsize, flags); in ffs_alloccg()
1123 blkno = ffs_alloccgblk(ip, bp, bpref, realsize, flags); in ffs_alloccg()
1138 bno = ffs_mapsearch(fs, cgp, bpref, allocsiz); in ffs_alloccg()
1182 ffs_alloccgblk(struct inode *ip, struct buf *bp, daddr_t bpref, int realsize, in ffs_alloccgblk() argument
1197 if (bpref == 0 || dtog(fs, bpref) != ufs_rw32(cgp->cg_cgx, needswap)) { in ffs_alloccgblk()
1198 bpref = ufs_rw32(cgp->cg_rotor, needswap); in ffs_alloccgblk()
1200 bpref = ffs_blknum(fs, bpref); in ffs_alloccgblk()
1201 bno = dtogd(fs, bpref); in ffs_alloccgblk()
1218 bno = ffs_mapsearch(fs, cgp, bpref, (int)fs->fs_frag); in ffs_alloccgblk()
2160 ffs_mapsearch(struct fs *fs, struct cg *cgp, daddr_t bpref, int allocsiz) in ffs_mapsearch() argument
2175 if (bpref) in ffs_mapsearch()
2176 start = dtogd(fs, bpref) / NBBY; in ffs_mapsearch()