Lines Matching refs:bpref
101 ffs_alloc(struct inode *ip, daddr_t lbn __unused, daddr_t bpref, int size, in ffs_alloc() argument
115 if (bpref >= fs->fs_size) in ffs_alloc()
116 bpref = 0; in ffs_alloc()
117 if (bpref == 0) in ffs_alloc()
120 cg = dtog(fs, bpref); in ffs_alloc()
121 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); in ffs_alloc()
299 ffs_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) in ffs_alloccg() argument
322 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg()
344 bno = ffs_alloccgblk(ip, bp, bpref); in ffs_alloccg()
345 bpref = dtogd(fs, bno); in ffs_alloccg()
347 setbit(cg_blksfree(cgp, needswap), bpref + i); in ffs_alloccg()
357 bno = ffs_mapsearch(fs, cgp, bpref, allocsiz); in ffs_alloccg()
384 ffs_alloccgblk(struct inode *ip, struct buf *bp, daddr_t bpref) in ffs_alloccgblk() argument
395 if (bpref == 0 || dtog(fs, bpref) != ufs_rw32(cgp->cg_cgx, needswap)) { in ffs_alloccgblk()
396 bpref = ufs_rw32(cgp->cg_rotor, needswap); in ffs_alloccgblk()
398 bpref = ffs_blknum(fs, bpref); in ffs_alloccgblk()
399 bno = dtogd(fs, bpref); in ffs_alloccgblk()
409 bno = ffs_mapsearch(fs, cgp, bpref, (int)fs->fs_frag); in ffs_alloccgblk()
538 ffs_mapsearch(struct fs *fs, struct cg *cgp, daddr_t bpref, int allocsiz) in ffs_mapsearch() argument
550 if (bpref) in ffs_mapsearch()
551 start = dtogd(fs, bpref) / NBBY; in ffs_mapsearch()