Lines Matching refs:blks
620 int i, j, count, blks, tbperdb; in ufs1_blksout() local
622 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs1_blksout()
624 for (i = 0; i < blks; i += TP_NINDIR) { in ufs1_blksout()
625 if (i + TP_NINDIR > blks) in ufs1_blksout()
626 count = blks; in ufs1_blksout()
657 int i, j, count, resid, blks, tbperdb, added; in ufs2_blksout() local
665 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs2_blksout()
674 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid; in ufs2_blksout()
677 for (i = 0; i < blks; i += TP_NINDIR) { in ufs2_blksout()
678 if (i + TP_NINDIR > blks) in ufs2_blksout()
679 count = blks; in ufs2_blksout()
689 if (last && count == blks && !writingextdata) in ufs2_blksout()
702 if (last && count == blks && !writingextdata) { in ufs2_blksout()
722 int i, blks, tbperdb; in appendextdata() local
736 blks = howmany(UFS_NXADDR * sblock->fs_bsize, TP_BSIZE); in appendextdata()
738 blks = howmany(spcl.c_extsize, TP_BSIZE); in appendextdata()
739 if (spcl.c_count + blks > TP_NINDIR) in appendextdata()
747 assert(spcl.c_count + blks <= TP_NINDIR); in appendextdata()
748 for (i = 0; i < blks; i++) in appendextdata()
753 spcl.c_count += blks; in appendextdata()
754 return (blks); in appendextdata()
766 int i, frags, blks, tbperdb, last; in writeextdata() local
790 blks = howmany(UFS_NXADDR * sblock->fs_bsize, TP_BSIZE); in writeextdata()
792 blks = howmany(spcl.c_extsize, TP_BSIZE); in writeextdata()
794 for (i = 0; i < blks; i += tbperdb) { in writeextdata()
797 if (i + tbperdb <= blks) in writeextdata()
800 dumpblock(*bp, (blks - i) * TP_BSIZE); in writeextdata()