Lines Matching refs:bpref
103 ufs2_daddr_t bpref, int size, int rsize);
152 ufs2_daddr_t bpref, in ffs_alloc() argument
195 if (bpref >= fs->fs_size) in ffs_alloc()
196 bpref = 0; in ffs_alloc()
197 if (bpref == 0) in ffs_alloc()
200 cg = dtog(fs, bpref); in ffs_alloc()
201 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg); in ffs_alloc()
254 ufs2_daddr_t bpref, in ffs_realloccg() argument
355 if (bpref >= fs->fs_size) in ffs_realloccg()
356 bpref = 0; in ffs_realloccg()
400 bno = ffs_hashalloc(ip, cg, bpref, request, nsize, ffs_alloccg); in ffs_realloccg()
1793 ufs2_daddr_t bpref, in ffs_alloccg() argument
1818 blkno = ffs_alloccgblk(ip, bp, bpref, rsize); in ffs_alloccg()
1842 blkno = ffs_alloccgblk(ip, bp, bpref, rsize); in ffs_alloccg()
1850 bno = ffs_mapsearch(fs, cgp, bpref, allocsiz); in ffs_alloccg()
1891 ufs2_daddr_t bpref, in ffs_alloccgblk() argument
1907 if (bpref == 0) { in ffs_alloccgblk()
1908 bpref = cgbase(fs, cgp->cg_cgx) + cgp->cg_rotor + fs->fs_frag; in ffs_alloccgblk()
1909 } else if ((cgbpref = dtog(fs, bpref)) != cgp->cg_cgx) { in ffs_alloccgblk()
1911 if (bpref < cgdata(fs, cgbpref)) in ffs_alloccgblk()
1912 bpref = cgmeta(fs, cgp->cg_cgx); in ffs_alloccgblk()
1914 bpref = cgdata(fs, cgp->cg_cgx); in ffs_alloccgblk()
1919 bno = dtogd(fs, blknum(fs, bpref)); in ffs_alloccgblk()
1925 bno = ffs_mapsearch(fs, cgp, bpref, (int)fs->fs_frag); in ffs_alloccgblk()
1973 ufs2_daddr_t bpref, in ffs_clusteralloc() argument
2033 if (dtog(fs, bpref) != cg) in ffs_clusteralloc()
2034 bpref = cgdata(fs, cg); in ffs_clusteralloc()
2036 bpref = blknum(fs, bpref); in ffs_clusteralloc()
2037 bpref = fragstoblks(fs, dtogd(fs, bpref)); in ffs_clusteralloc()
2038 mapp = &cg_clustersfree(cgp)[bpref / NBBY]; in ffs_clusteralloc()
2040 bit = 1 << (bpref % NBBY); in ffs_clusteralloc()
2041 for (run = 0, got = bpref; got < cgp->cg_nclusterblks; got++) { in ffs_clusteralloc()
2959 ufs2_daddr_t bpref, in ffs_mapsearch() argument
2971 if (bpref) in ffs_mapsearch()
2972 start = dtogd(fs, bpref) / NBBY; in ffs_mapsearch()