Lines Matching refs:ntp
120 xfs_trans_t *ntp; in xfs_trans_dup() local
122 ntp = kmem_zone_zalloc(xfs_trans_zone, KM_SLEEP); in xfs_trans_dup()
127 ntp->t_magic = XFS_TRANS_HEADER_MAGIC; in xfs_trans_dup()
128 ntp->t_type = tp->t_type; in xfs_trans_dup()
129 ntp->t_mountp = tp->t_mountp; in xfs_trans_dup()
130 INIT_LIST_HEAD(&ntp->t_items); in xfs_trans_dup()
131 INIT_LIST_HEAD(&ntp->t_busy); in xfs_trans_dup()
136 ntp->t_flags = XFS_TRANS_PERM_LOG_RES | in xfs_trans_dup()
141 ntp->t_ticket = xfs_log_ticket_get(tp->t_ticket); in xfs_trans_dup()
142 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used; in xfs_trans_dup()
144 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used; in xfs_trans_dup()
146 ntp->t_pflags = tp->t_pflags; in xfs_trans_dup()
148 xfs_trans_dup_dqinfo(tp, ntp); in xfs_trans_dup()
151 return ntp; in xfs_trans_dup()