/* Get an inode and join it to the transaction.  */
int xfs_trans_iget(xfs_mount_t *mp, xfs_trans_t *tp, xfs_ino_t ino, uint flags, uint lock_flags, xfs_inode_t **ipp)
/* Get an inode and join it to the transaction.  */
int xfs_trans_iget(xfs_mount_t *mp, xfs_trans_t *tp, xfs_ino_t ino, uint flags, uint lock_flags, xfs_inode_t **ipp)
{
	int			error;
	error = xfs_iget(mp, tp, ino, flags, lock_flags, ipp, 0);
	if (!error && tp)
		xfs_trans_ijoin(tp, *ipp, lock_flags);
	return error;
}