Lines Matching defs:ndb
63 ufs2_daddr_t ndb;
80 ndb = howmany(DIP(&dino, di_size), sblock.fs_bsize);
83 if (--ndb == 0 &&
90 if (idesc->id_type == DATA && ndb >= 0) {
318 ufs2_daddr_t ndb, blk;
360 ndb = howmany(DIP(dp, di_size), sblock.fs_bsize);
361 if (ndb < 0)
364 ndb++;
367 * Fake ndb value so direct/indirect block checks below
371 ndb = howmany(DIP(dp, di_size),
373 if (ndb > NDADDR) {
374 j = ndb - NDADDR;
375 for (ndb = 1; j > 1; j--)
376 ndb *= NINDIR(&sblock);
377 ndb += NDADDR;
381 for (j = ndb; ndb < NDADDR && j < NDADDR; j++)
384 for (j = 0, ndb -= NDADDR; ndb > 0; j++)
385 ndb /= NINDIR(&sblock);