Lines Matching defs:blks
616 int i, j, count, blks, tbperdb;
618 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE);
620 for (i = 0; i < blks; i += TP_NINDIR) {
621 if (i + TP_NINDIR > blks)
622 count = blks;
653 int i, j, count, resid, blks, tbperdb, added;
661 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE);
670 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid;
673 for (i = 0; i < blks; i += TP_NINDIR) {
674 if (i + TP_NINDIR > blks)
675 count = blks;
685 if (last && count == blks && !writingextdata)
698 if (last && count == blks && !writingextdata) {
718 int i, blks, tbperdb;
732 blks = howmany(UFS_NXADDR * sblock->fs_bsize, TP_BSIZE);
734 blks = howmany(spcl.c_extsize, TP_BSIZE);
735 if (spcl.c_count + blks > TP_NINDIR)
743 assert(spcl.c_count + blks <= TP_NINDIR);
744 for (i = 0; i < blks; i++)
749 spcl.c_count += blks;
750 return (blks);
762 int i, frags, blks, tbperdb, last;
786 blks = howmany(UFS_NXADDR * sblock->fs_bsize, TP_BSIZE);
788 blks = howmany(spcl.c_extsize, TP_BSIZE);
790 for (i = 0; i < blks; i += tbperdb) {
793 if (i + tbperdb <= blks)
796 dumpblock(*bp, (blks - i) * TP_BSIZE);