Lines Matching refs:bno
88 int32_t bno;
115 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize,
117 if (bno > 0) {
120 ip->i_next_alloc_goal = bno;
124 *bnp = bno;
801 daddr_t bno, runstart, runlen;
845 bno = bpref;
885 bno = runstart;
897 bno = runstart;
906 bno = ext2_mapsearch(fs, bbp, bpref);
907 if (bno < 0) {
914 if (isset(bbp, bno)) {
915 printf("ext2fs_alloccgblk: cg=%d bno=%jd fs=%s\n",
916 cg, (intmax_t)bno, fs->e2fs_fsmnt);
920 setbit(bbp, bno);
922 ext2_clusteracct(fs, bbp, cg, bno, -1);
928 return (cg * fs->e2fs->e2fs_fpg + fs->e2fs->e2fs_first_dblock + bno);
943 daddr_t bno;
1015 bno = got - run + 1;
1016 if (bno >= fs->e2fs->e2fs_fpg)
1021 setbit(bbp, bno + i);
1022 ext2_clusteracct(fs, bbp, cg, bno + i, -1);
1030 return (cg * fs->e2fs->e2fs_fpg + fs->e2fs->e2fs_first_dblock + bno);
1169 ext2_blkfree(struct inode *ip, e4fs_daddr_t bno, long size)
1179 cg = dtog(fs, bno);
1180 if ((u_int)bno >= fs->e2fs->e2fs_bcount) {
1181 printf("bad block %lld, ino %ju\n", (long long)bno,
1194 bno = dtogd(fs, bno);
1195 if (isclr(bbp, bno)) {
1197 (long long)bno, fs->e2fs_fsmnt);
1200 clrbit(bbp, bno);
1202 ext2_clusteracct(fs, bbp, cg, bno, 1);