Lines Matching refs:ip
58 struct xfs_inode *ip; in xfs_qm_scall_trunc_qfile() local
65 error = xfs_iget(mp, NULL, ino, 0, 0, &ip); in xfs_qm_scall_trunc_qfile()
69 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
73 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
77 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_scall_trunc_qfile()
78 xfs_trans_ijoin(tp, ip, 0); in xfs_qm_scall_trunc_qfile()
80 ip->i_disk_size = 0; in xfs_qm_scall_trunc_qfile()
81 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_qm_scall_trunc_qfile()
83 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, 0); in xfs_qm_scall_trunc_qfile()
89 ASSERT(ip->i_df.if_nextents == 0); in xfs_qm_scall_trunc_qfile()
91 xfs_trans_ichgtime(tp, ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); in xfs_qm_scall_trunc_qfile()
95 xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
97 xfs_irele(ip); in xfs_qm_scall_trunc_qfile()