Lines Matching refs:ntp
92 struct xfs_trans *ntp; in xfs_trans_dup() local
96 ntp = kmem_cache_zalloc(xfs_trans_cache, GFP_KERNEL | __GFP_NOFAIL); in xfs_trans_dup()
101 ntp->t_magic = XFS_TRANS_HEADER_MAGIC; in xfs_trans_dup()
102 ntp->t_mountp = tp->t_mountp; in xfs_trans_dup()
103 INIT_LIST_HEAD(&ntp->t_items); in xfs_trans_dup()
104 INIT_LIST_HEAD(&ntp->t_busy); in xfs_trans_dup()
105 INIT_LIST_HEAD(&ntp->t_dfops); in xfs_trans_dup()
106 ntp->t_highest_agno = NULLAGNUMBER; in xfs_trans_dup()
111 ntp->t_flags = XFS_TRANS_PERM_LOG_RES | in xfs_trans_dup()
117 ntp->t_ticket = xfs_log_ticket_get(tp->t_ticket); in xfs_trans_dup()
120 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used; in xfs_trans_dup()
123 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used; in xfs_trans_dup()
126 xfs_trans_switch_context(tp, ntp); in xfs_trans_dup()
129 xfs_defer_move(ntp, tp); in xfs_trans_dup()
131 xfs_trans_dup_dqinfo(tp, ntp); in xfs_trans_dup()
132 return ntp; in xfs_trans_dup()