Lines Matching refs:nsize
189 ffs_realloccg(ip, lbprev, bpref, osize, nsize, cred, bpp)
193 int osize, nsize;
207 (u_int)nsize > fs->fs_bsize || fragoff(fs, nsize) != 0) {
209 "dev = 0x%x, bsize = %d, osize = %d, nsize = %d, fs = %s\n",
210 ip->i_dev, fs->fs_bsize, osize, nsize, fs->fs_fsmnt);
233 if (error = chkdq(ip, (int64_t)(nsize - osize), cred, 0))
243 if (bno = ffs_fragextend(ip, cg, (long)bprev, osize, nsize)) {
246 ip->i_blocks += btodb(nsize - osize, devBlockSize);
248 allocbuf(bp, nsize);
268 request = nsize;
307 if (nsize < request)
308 ffs_blkfree(ip, bno + numfrags(fs, nsize),
309 (long)(request - nsize));
310 ip->i_blocks += btodb(nsize - osize, devBlockSize);
312 allocbuf(bp, nsize);
322 (void) chkdq(ip, (int64_t)-(nsize - osize), cred, FORCE);
749 ffs_fragextend(ip, cg, bprev, osize, nsize)
753 int osize, nsize;
769 if (fs->fs_cs(fs, cg).cs_nffree < numfrags(fs, nsize - osize))
771 frags = numfrags(fs, nsize); /* number of fragments needed */