Lines Matching refs:ntp
94 struct xfs_trans *ntp; in xfs_trans_dup() local
98 ntp = kmem_cache_zalloc(xfs_trans_zone, GFP_KERNEL | __GFP_NOFAIL); in xfs_trans_dup()
103 ntp->t_magic = XFS_TRANS_HEADER_MAGIC; in xfs_trans_dup()
104 ntp->t_mountp = tp->t_mountp; in xfs_trans_dup()
105 INIT_LIST_HEAD(&ntp->t_items); in xfs_trans_dup()
106 INIT_LIST_HEAD(&ntp->t_busy); in xfs_trans_dup()
107 INIT_LIST_HEAD(&ntp->t_dfops); in xfs_trans_dup()
108 ntp->t_firstblock = NULLFSBLOCK; in xfs_trans_dup()
113 ntp->t_flags = XFS_TRANS_PERM_LOG_RES | in xfs_trans_dup()
119 ntp->t_ticket = xfs_log_ticket_get(tp->t_ticket); in xfs_trans_dup()
122 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used; in xfs_trans_dup()
125 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used; in xfs_trans_dup()
128 xfs_trans_switch_context(tp, ntp); in xfs_trans_dup()
131 xfs_defer_move(ntp, tp); in xfs_trans_dup()
133 xfs_trans_dup_dqinfo(tp, ntp); in xfs_trans_dup()
134 return ntp; in xfs_trans_dup()