Home
last modified time | relevance | path

Searched refs:bpref (Results 1 – 5 of 5) sorted by relevance

/dragonfly/usr.sbin/makefs/ffs/
HDffs_alloc.c93 ffs_alloc(struct inode *ip, makefs_daddr_t lbn __unused, makefs_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()
298 ffs_alloccg(struct inode *ip, int cg, makefs_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()
[all …]
/dragonfly/sys/vfs/ufs/
HDffs_alloc.c60 typedef ufs_daddr_t allocfcn_t (struct inode *ip, int cg, ufs_daddr_t bpref,
104 ffs_alloc(struct inode *ip, ufs_daddr_t lbn, ufs_daddr_t bpref, int size, in ffs_alloc() argument
136 if (bpref >= fs->fs_size) in ffs_alloc()
137 bpref = 0; in ffs_alloc()
138 if (bpref == 0) in ffs_alloc()
141 cg = dtog(fs, bpref); in ffs_alloc()
142 bno = (ufs_daddr_t)ffs_hashalloc(ip, cg, (long)bpref, size, in ffs_alloc()
171 ffs_realloccg(struct inode *ip, ufs_daddr_t lbprev, ufs_daddr_t bpref, in ffs_realloccg() argument
242 if (bpref >= fs->fs_size) in ffs_realloccg()
243 bpref = 0; in ffs_realloccg()
[all …]
/dragonfly/sys/vfs/ext2fs/
HDext2_alloc.c104 ext2_alloc(struct inode *ip, daddr_t lbn, e4fs_daddr_t bpref, int size, in ext2_alloc() argument
130 if (bpref >= fs->e2fs_bcount) in ext2_alloc()
131 bpref = 0; in ext2_alloc()
132 if (bpref == 0) in ext2_alloc()
135 cg = dtog(fs, bpref); in ext2_alloc()
136 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2_alloc()
983 ext2_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) in ext2_alloccg() argument
1029 if (dtog(fs, bpref) != cg) in ext2_alloccg()
1030 bpref = 0; in ext2_alloccg()
1031 if (bpref != 0) { in ext2_alloccg()
[all …]
/dragonfly/sys/vfs/hammer2/
HDhammer2_freemap.c46 hammer2_off_t bpref; member
240 iter.bpref = hmp->heur_freemap[hindex]; in hammer2_freemap_alloc()
247 if (iter.bpref > hmp->total_size) in hammer2_freemap_alloc()
248 iter.bpref = hmp->total_size - 1; in hammer2_freemap_alloc()
257 iter.bnext = iter.bpref; in hammer2_freemap_alloc()
317 key, iter->bpref); in hammer2_freemap_try_alloc()
/dragonfly/usr.sbin/makefs/hammer2/
HDhammer2_freemap.c50 hammer2_off_t bpref; member
244 iter.bpref = hmp->heur_freemap[hindex]; in hammer2_freemap_alloc()
251 if (iter.bpref > hmp->total_size) in hammer2_freemap_alloc()
252 iter.bpref = hmp->total_size - 1; in hammer2_freemap_alloc()
261 iter.bnext = iter.bpref; in hammer2_freemap_alloc()
321 key, iter->bpref); in hammer2_freemap_try_alloc()