The Irish were not "white" back then
The Irish were coerced into the UK and were officially British citizens, that is ostensibly, co-nationals. They weren't treated as such because those in power regarded them as subhuman. If that isn't racism the word is devoid of meaning.
> I feel with them that it is impossible for us, with our limited means, to attempt to educate the body of the people. We must at present do our best to form a class who may be interpreters between us and the millions whom we govern; a class of persons Indian in blood and colour, but English in tastes, in opinions, in morals, and in intellect. To that class we may leave it to refine the vernacular dialects of the country, to enrich those dialects with terms of science borrowed from the Western nomenclature, and to render them by degrees fit vehicles for conveying knowledge to the great mass of the population.
In 1835, it's quite progressive to posit that you can, through education, create a class of Indians who are "English in tastes, in opinions, in morals, and in intellect." Arguably, it was too optimistically progressive--history showed that Oxbridge educations could go only so far in turning Indians into English.