Lines Matching refs:tp
105 struct xfs_trans *tp; in xfs_setfilesize_trans_alloc() local
108 tp = xfs_trans_alloc(mp, XFS_TRANS_FSYNC_TS); in xfs_setfilesize_trans_alloc()
110 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_fsyncts, 0, 0); in xfs_setfilesize_trans_alloc()
112 xfs_trans_cancel(tp); in xfs_setfilesize_trans_alloc()
116 ioend->io_append_trans = tp; in xfs_setfilesize_trans_alloc()
127 current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS); in xfs_setfilesize_trans_alloc()
137 struct xfs_trans *tp, in xfs_setfilesize() argument
147 xfs_trans_cancel(tp); in xfs_setfilesize()
154 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
155 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_setfilesize()
157 return xfs_trans_commit(tp); in xfs_setfilesize()
165 struct xfs_trans *tp = ioend->io_append_trans; in xfs_setfilesize_ioend() local
172 current_set_flags_nested(&tp->t_pflags, PF_FSTRANS); in xfs_setfilesize_ioend()
177 xfs_trans_cancel(tp); in xfs_setfilesize_ioend()
181 return xfs_setfilesize(ip, tp, ioend->io_offset, ioend->io_size); in xfs_setfilesize_ioend()