Agreed a few mm can be dealt with by using glazing packers or similar , anything greater can mean replacing the joist or at least sistering a new one to it although the op has not said by how much the floor is out.. as he has removed the existing flooring then levelling out the joists would not...