Lines Matching refs:ip
162 xfs_inode_t *ip; in xfs_dir_ialloc() local
190 &ialloc_context, &call_again, &ip); in xfs_dir_ialloc()
201 if (!call_again && (ip == NULL)) { in xfs_dir_ialloc()
288 okalloc, &ialloc_context, &call_again, &ip); in xfs_dir_ialloc()
299 ASSERT ((!call_again) && (ip != NULL)); in xfs_dir_ialloc()
307 *ipp = ip; in xfs_dir_ialloc()
321 xfs_inode_t *ip) in xfs_droplink() argument
325 xfs_ichgtime(ip, XFS_ICHGTIME_CHG); in xfs_droplink()
327 ASSERT (ip->i_d.di_nlink > 0); in xfs_droplink()
328 ip->i_d.di_nlink--; in xfs_droplink()
329 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_droplink()
332 if (ip->i_d.di_nlink == 0) { in xfs_droplink()
339 error = xfs_iunlink(tp, ip); in xfs_droplink()
354 xfs_inode_t *ip) in xfs_bump_ino_vers2() argument
359 ASSERT(ismrlocked (&ip->i_lock, MR_UPDATE)); in xfs_bump_ino_vers2()
360 ASSERT(ip->i_d.di_version == XFS_DINODE_VERSION_1); in xfs_bump_ino_vers2()
362 ip->i_d.di_version = XFS_DINODE_VERSION_2; in xfs_bump_ino_vers2()
363 ip->i_d.di_onlink = 0; in xfs_bump_ino_vers2()
364 memset(&(ip->i_d.di_pad[0]), 0, sizeof(ip->i_d.di_pad)); in xfs_bump_ino_vers2()
385 xfs_inode_t *ip) in xfs_bumplink() argument
387 if (ip->i_d.di_nlink >= XFS_MAXLINK) in xfs_bumplink()
389 xfs_ichgtime(ip, XFS_ICHGTIME_CHG); in xfs_bumplink()
391 ASSERT(ip->i_d.di_nlink > 0); in xfs_bumplink()
392 ip->i_d.di_nlink++; in xfs_bumplink()
393 if ((ip->i_d.di_version == XFS_DINODE_VERSION_1) && in xfs_bumplink()
394 (ip->i_d.di_nlink > XFS_MAXLINK_1)) { in xfs_bumplink()
403 xfs_bump_ino_vers2(tp, ip); in xfs_bumplink()
406 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_bumplink()
418 xfs_inode_t *ip) in xfs_truncate_file() argument
428 if (ip->i_ino != mp->m_sb.sb_uquotino) in xfs_truncate_file()
429 ASSERT(ip->i_udquot); in xfs_truncate_file()
432 if (ip->i_ino != mp->m_sb.sb_gquotino) in xfs_truncate_file()
433 ASSERT(ip->i_gdquot); in xfs_truncate_file()
441 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_truncate_file()
442 xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE, (xfs_fsize_t)0); in xfs_truncate_file()
449 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_truncate_file()
458 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_truncate_file()
459 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_truncate_file()
460 xfs_trans_ihold(tp, ip); in xfs_truncate_file()
472 error = xfs_itruncate_finish(&tp, ip, (xfs_fsize_t)0, in xfs_truncate_file()
474 ((ip->i_d.di_nlink != 0 || in xfs_truncate_file()
481 xfs_ichgtime(ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); in xfs_truncate_file()
485 xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_truncate_file()