Lines Matching refs:blks
630 int i, j, count, blks, tbperdb;
632 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE);
634 for (i = 0; i < blks; i += TP_NINDIR) {
635 if (i + TP_NINDIR > blks)
636 count = blks;
666 int i, j, count, resid, blks, tbperdb, added;
674 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE);
683 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid;
686 for (i = 0; i < blks; i += TP_NINDIR) {
687 if (i + TP_NINDIR > blks)
688 count = blks;
697 if (last && count == blks && !writingextdata)
710 if (last && count == blks && !writingextdata) {
730 int i, blks, tbperdb;
744 blks = howmany(NXADDR * sblock->fs_bsize, TP_BSIZE);
746 blks = howmany(spcl.c_extsize, TP_BSIZE);
747 if (spcl.c_count + blks > TP_NINDIR)
755 for (i = 0; i < blks; i++)
760 spcl.c_count += blks;
761 return (blks);
773 int i, frags, blks, tbperdb, last;
797 blks = howmany(NXADDR * sblock->fs_bsize, TP_BSIZE);
799 blks = howmany(spcl.c_extsize, TP_BSIZE);
801 for (i = 0; i < blks; i += tbperdb) {
804 if (i + tbperdb <= blks)
807 dumpblock(*bp, (blks - i) * TP_BSIZE);