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, 0); in xfs_setfilesize_trans_alloc()
116 ioend->io_append_trans = tp; in xfs_setfilesize_trans_alloc()
128 current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS); in xfs_setfilesize_trans_alloc()
138 struct xfs_trans *tp, in xfs_setfilesize() argument
148 xfs_trans_cancel(tp, 0); in xfs_setfilesize()
155 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
156 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_setfilesize()
158 return xfs_trans_commit(tp, 0); in xfs_setfilesize()
166 struct xfs_trans *tp = ioend->io_append_trans; in xfs_setfilesize_ioend() local
173 current_set_flags_nested(&tp->t_pflags, PF_FSTRANS); in xfs_setfilesize_ioend()
177 return xfs_setfilesize(ip, tp, ioend->io_offset, ioend->io_size); in xfs_setfilesize_ioend()