Lines Matching defs:ntp
91 struct xfs_trans *ntp;
95 ntp = kmem_cache_zalloc(xfs_trans_cache, GFP_KERNEL | __GFP_NOFAIL);
100 ntp->t_magic = XFS_TRANS_HEADER_MAGIC;
101 ntp->t_mountp = tp->t_mountp;
102 INIT_LIST_HEAD(&ntp->t_items);
103 INIT_LIST_HEAD(&ntp->t_busy);
104 INIT_LIST_HEAD(&ntp->t_dfops);
105 ntp->t_highest_agno = NULLAGNUMBER;
110 ntp->t_flags = XFS_TRANS_PERM_LOG_RES |
116 ntp->t_ticket = xfs_log_ticket_get(tp->t_ticket);
119 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used;
122 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used;
125 xfs_trans_switch_context(tp, ntp);
128 xfs_defer_move(ntp, tp);
130 xfs_trans_dup_dqinfo(tp, ntp);
131 return ntp;