Lines Matching refs:level
215 int offset, size, level, nblocks;
490 for (level = TRIPLE; level >= SINGLE; level--) {
491 oldblks[NDADDR + level] = DIP(ip, i_ib[level]);
492 if (lastiblock[level] < 0) {
493 DIP_SET(ip, i_ib[level], 0);
494 lastiblock[level] = -1;
533 for (level = TRIPLE; level >= SINGLE; level--) {
534 bn = DIP(ip, i_ib[level]);
536 error = ffs_indirtrunc(ip, indir_lbn[level],
537 fsbtodb(fs, bn), lastiblock[level], level, &count);
541 if (lastiblock[level] < 0) {
542 DIP_SET(ip, i_ib[level], 0);
549 if (lastiblock[level] >= 0)
604 for (level = SINGLE; level <= TRIPLE; level++)
605 if (newblks[NDADDR + level] != DIP(ip, i_ib[level]))
643 * lastbn. If level is greater than SINGLE, the block is an indirect block
648 ffs_indirtrunc(ip, lbn, dbn, lastbn, level, countp)
652 int level;
673 factor = lbn_offset(fs, level);
747 if (level > SINGLE) {
749 (ufs2_daddr_t)-1, level - 1, &blkcount)) != 0)
761 if (level > SINGLE && lastbn >= 0) {
766 last, level - 1, &blkcount);