#if defined(XLOG_NOLOG) || defined(DEBUG) ASSERT(!xlog_debug || tp->t_ticket != NULL); #else ASSERT(tp->t_ticket != NULL); #endif 
xfs_trans_dup(	xfs_trans_t	*tp){	xfs_trans_t	*ntp;	ntp = kmem_zone_zalloc(xfs_trans_zone, KM_SLEEP);	/*	 * Initialize the new transaction structure.	 */	ntp->t_magic = XFS_TRANS_MAGIC;	ntp->t_type = tp->t_type;	ntp->t_mountp = tp->t_mountp;	ntp->t_items_free = XFS_LIC_NUM_SLOTS;	ntp->t_busy_free = XFS_LBC_NUM_SLOTS;	XFS_LIC_INIT(&(ntp->t_items));	XFS_LBC_INIT(&(ntp->t_busy));	ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES);#if defined(XLOG_NOLOG) || defined(DEBUG)	ASSERT(!xlog_debug || tp->t_ticket != NULL);#else	ASSERT(tp->t_ticket != NULL);#endif	ntp->t_flags = XFS_TRANS_PERM_LOG_RES | (tp->t_flags & XFS_TRANS_RESERVE);	ntp->t_ticket = tp->t_ticket;	ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used;	tp->t_blk_res = tp->t_blk_res_used;	ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used;	tp->t_rtx_res = tp->t_rtx_res_used;	PFLAGS_DUP(&tp->t_pflags, &ntp->t_pflags);	XFS_TRANS_DUP_DQINFO(tp->t_mountp, tp, ntp);	atomic_inc(&tp->t_mountp->m_active_trans);	return ntp;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/cfcbbbd089eadcaa86abb2c0f352e1ab23e16f72/xfs_trans.c/clean/fs/xfs/xfs_trans.c