Lines Matching defs:nb
108 register ufs_daddr_t nb;
137 nb = lblkno(fs, ip->i_size);
138 if (nb < NDADDR && nb < lbn) {
144 osize = blksize(fs, ip, nb);
153 error = ffs_realloccg(ip, nb,
154 ffs_blkpref(ip, nb, (int)nb, &ip->i_db[0]),
159 /* it is in nb+1 as nb starts from 0 */
160 ip->i_size = (nb + 1) * fs->fs_bsize;
163 ip->i_db[nb] = dbtofsb(fs, (ufs_daddr_t)buf_blkno(bp));
179 nb = ip->i_db[lbn];
180 if (nb != 0 && ip->i_size >= (lbn + 1) * fs->fs_bsize) {
191 if (nb != 0) {
277 nb = ip->i_ib[indirs[0].in_off];
280 if (nb == 0) {
285 nb = newb;
286 *allocblk++ = nb;
288 buf_setblkno(bp, (daddr64_t)((unsigned)fsbtodb(fs, nb)));
300 *allocib = nb;
315 nb = OSSwapInt32(bap[indirs[i].in_off]);
318 nb = bap[indirs[i].in_off];
325 if (nb != 0) {
336 nb = newb;
337 *allocblk++ = nb;
339 buf_setblkno(nbp, (daddr64_t)((unsigned)fsbtodb(fs, nb)));
353 bap[indirs[i - 1].in_off] = OSSwapInt32(nb);
356 bap[indirs[i - 1].in_off] = nb;
373 if (nb == 0) {
380 nb = newb;
381 *allocblk++ = nb;
384 bap[indirs[i].in_off] = OSSwapInt32(nb);
387 bap[indirs[i].in_off] = nb;
402 buf_setblkno(nbp, (daddr64_t)((unsigned)fsbtodb(fs, nb)));
425 buf_setblkno(nbp, (daddr64_t)((unsigned)fsbtodb(fs, nb)));
474 register ufs_daddr_t nb;
497 nb = lblkno(fs, ip->i_size);
498 if (nb < NDADDR && nb < lbn) {
505 nb = ip->i_db[lbn];
506 if (nb != 0 && ip->i_size >= (lbn + 1) * fs->fs_bsize) {
510 if (nb != 0) {
550 nb = ip->i_ib[indirs[0].in_off];
553 if (nb == 0) {
558 nb = newb;
559 *allocblk++ = nb;
561 buf_setblkno(bp, (daddr64_t)((unsigned)fsbtodb(fs, nb)));
573 *allocib = nb;
588 nb = OSSwapInt32(bap[indirs[i].in_off]);
591 nb = bap[indirs[i].in_off];
598 if (nb != 0) {
609 nb = newb;
610 *allocblk++ = nb;
612 buf_setblkno(nbp, (daddr64_t)((unsigned)fsbtodb(fs, nb)));
626 bap[indirs[i - 1].in_off] = OSSwapInt32(nb);
629 bap[indirs[i - 1].in_off] = nb;
646 if (nb == 0) {
653 nb = newb;
654 *allocblk++ = nb;
657 bap[indirs[i].in_off] = OSSwapInt32(nb);
660 bap[indirs[i].in_off] = nb;