Lines Matching defs:bno
121 daddr_t bno;
142 bno = (daddr_t)ext2fs_hashalloc(ip, cg, bpref, fs->e2fs_bsize,
144 if (bno > 0) {
147 *bnp = bno;
346 int error, bno, start, end, loc;
377 bno = bpref;
394 bno = loc * NBBY;
400 bno = loc * NBBY;
405 bno = ext2fs_mapsearch(fs, bbp, bpref);
411 if (bno < 0)
416 if (isset(bbp, (daddr_t)bno)) {
417 printf("%s: cg=%d bno=%d fs=%s\n", __func__,
418 cg, bno, fs->e2fs_fsmnt);
422 setbit(bbp, (daddr_t)bno);
427 return cg * fs->e2fs.e2fs_fpg + fs->e2fs.e2fs_first_dblock + bno;
516 ext2fs_blkfree(struct inode *ip, daddr_t bno)
524 cg = dtog(fs, bno);
529 if ((u_int)bno >= fs->e2fs.e2fs_bcount) {
531 __func__, (intmax_t)bno, (uintmax_t)ip->i_number);
543 bno = dtogd(fs, bno);
544 if (isclr(bbp, bno)) {
546 (uintmax_t)ip->i_dev, (intmax_t)bno,
550 clrbit(bbp, bno);