Lines Matching defs:oip
183 struct inode *oip;
202 oip = VTOI(ovp);
203 fs = oip->i_fs;
210 oip->i_size < ovp->v_mount->mnt_maxsymlinklen) {
215 bzero((char *)&oip->i_shortlink, (u_int)oip->i_size);
216 oip->i_size = 0;
217 oip->i_flag |= IN_CHANGE | IN_UPDATE;
221 if (oip->i_size == length) {
222 oip->i_flag |= IN_CHANGE | IN_UPDATE;
226 if (error = getinoquota(oip))
229 osize = oip->i_size;
242 if (error = ffs_balloc(oip, lbn, offset + 1, cred, &bp, aflags, 0))
244 oip->i_size = length;
256 oip->i_flag |= IN_CHANGE | IN_UPDATE;
277 oip->i_size = length;
283 if (error = ffs_balloc(oip, lbn, offset, cred, &bp, aflags, 0))
285 oip->i_size = length;
286 size = blksize(fs, oip, lbn);
319 bcopy((caddr_t)&oip->i_db[0], (caddr_t)oldblks, sizeof oldblks);
322 oip->i_ib[level] = 0;
326 oip->i_db[i] = 0;
327 oip->i_flag |= IN_CHANGE | IN_UPDATE;
336 bcopy((caddr_t)&oip->i_db[0], (caddr_t)newblks, sizeof newblks);
337 bcopy((caddr_t)oldblks, (caddr_t)&oip->i_db[0], sizeof oldblks);
338 oip->i_size = osize;
353 bn = oip->i_ib[level];
355 error = ffs_indirtrunc(oip, indir_lbn[level],
361 oip->i_ib[level] = 0;
362 ffs_blkfree(oip, bn, fs->fs_bsize);
376 bn = oip->i_db[i];
379 oip->i_db[i] = 0;
380 bsize = blksize(fs, oip, i);
381 ffs_blkfree(oip, bn, bsize);
391 bn = oip->i_db[lastblock];
399 oldspace = blksize(fs, oip, lastblock);
400 oip->i_size = length;
401 newspace = blksize(fs, oip, lastblock);
411 ffs_blkfree(oip, bn, oldspace - newspace);
418 if (newblks[NDADDR + level] != oip->i_ib[level])
421 if (newblks[i] != oip->i_db[i])
430 oip->i_size = length;
431 oip->i_blocks -= blocksreleased;
432 if (oip->i_blocks < 0) /* sanity */
433 oip->i_blocks = 0;
434 oip->i_flag |= IN_CHANGE;
437 (void) chkdq(oip, -change, NOCRED, 0);