Lines Matching refs:bpref
93 ffs_alloc(struct inode *ip, daddr_t lbn __unused, daddr_t bpref, int size, in ffs_alloc() argument
107 if (bpref >= fs->fs_size) in ffs_alloc()
108 bpref = 0; in ffs_alloc()
109 if (bpref == 0) in ffs_alloc()
112 cg = dtog(fs, bpref); in ffs_alloc()
113 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); in ffs_alloc()
294 ffs_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) in ffs_alloccg() argument
318 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg()
340 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg()
341 bpref = dtogd(fs, bno); in ffs_alloccg()
343 setbit(cg_blksfree_swap(cgp, needswap), bpref + i); in ffs_alloccg()
353 bno = ffs_mapsearch(fs, cgp, bpref, allocsiz); in ffs_alloccg()
380 ffs_alloccgblk(struct inode *ip, struct buf *bp, daddr_t bpref) in ffs_alloccgblk() argument
391 if (bpref == 0 || (uint32_t)dtog(fs, bpref) != ufs_rw32(cgp->cg_cgx, needswap)) { in ffs_alloccgblk()
392 bpref = ufs_rw32(cgp->cg_rotor, needswap); in ffs_alloccgblk()
394 bpref = blknum(fs, bpref); in ffs_alloccgblk()
395 bno = dtogd(fs, bpref); in ffs_alloccgblk()
405 bno = ffs_mapsearch(fs, cgp, bpref, (int)fs->fs_frag); in ffs_alloccgblk()
534 ffs_mapsearch(struct fs *fs, struct cg *cgp, daddr_t bpref, int allocsiz) in ffs_mapsearch() argument
546 if (bpref) in ffs_mapsearch()
547 start = dtogd(fs, bpref) / NBBY; in ffs_mapsearch()