Lines Matching refs:ntp
90 struct xfs_trans *ntp; in xfs_trans_dup() local
94 ntp = kmem_cache_zalloc(xfs_trans_zone, GFP_KERNEL | __GFP_NOFAIL); in xfs_trans_dup()
99 ntp->t_magic = XFS_TRANS_HEADER_MAGIC; in xfs_trans_dup()
100 ntp->t_mountp = tp->t_mountp; in xfs_trans_dup()
101 INIT_LIST_HEAD(&ntp->t_items); in xfs_trans_dup()
102 INIT_LIST_HEAD(&ntp->t_busy); in xfs_trans_dup()
103 INIT_LIST_HEAD(&ntp->t_dfops); in xfs_trans_dup()
104 ntp->t_firstblock = NULLFSBLOCK; in xfs_trans_dup()
109 ntp->t_flags = XFS_TRANS_PERM_LOG_RES | in xfs_trans_dup()
115 ntp->t_ticket = xfs_log_ticket_get(tp->t_ticket); in xfs_trans_dup()
118 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used; in xfs_trans_dup()
121 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used; in xfs_trans_dup()
124 xfs_trans_switch_context(tp, ntp); in xfs_trans_dup()
127 xfs_defer_move(ntp, tp); in xfs_trans_dup()
129 xfs_trans_dup_dqinfo(tp, ntp); in xfs_trans_dup()
130 return ntp; in xfs_trans_dup()