Lines Matching refs:bpref
91 ffs_alloc(struct inode *ip, daddr_t lbn __unused, daddr_t bpref, int size, in ffs_alloc() argument
105 if (bpref >= fs->fs_size) in ffs_alloc()
106 bpref = 0; in ffs_alloc()
107 if (bpref == 0) in ffs_alloc()
110 cg = dtog(fs, bpref); in ffs_alloc()
111 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); in ffs_alloc()
292 ffs_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) in ffs_alloccg() argument
315 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg()
337 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg()
338 bpref = dtogd(fs, bno); in ffs_alloccg()
340 setbit(cg_blksfree_swap(cgp, needswap), bpref + i); in ffs_alloccg()
350 bno = ffs_mapsearch(fs, cgp, bpref, allocsiz); in ffs_alloccg()
377 ffs_alloccgblk(struct inode *ip, struct m_buf *bp, daddr_t bpref) in ffs_alloccgblk() argument
388 if (bpref == 0 || (uint32_t)dtog(fs, bpref) != ufs_rw32(cgp->cg_cgx, needswap)) { in ffs_alloccgblk()
389 bpref = ufs_rw32(cgp->cg_rotor, needswap); in ffs_alloccgblk()
391 bpref = blknum(fs, bpref); in ffs_alloccgblk()
392 bno = dtogd(fs, bpref); in ffs_alloccgblk()
402 bno = ffs_mapsearch(fs, cgp, bpref, (int)fs->fs_frag); in ffs_alloccgblk()
530 ffs_mapsearch(struct fs *fs, struct cg *cgp, daddr_t bpref, int allocsiz) in ffs_mapsearch() argument
542 if (bpref) in ffs_mapsearch()
543 start = dtogd(fs, bpref) / NBBY; in ffs_mapsearch()