That doesn't really look like anything to worry about. When you start worrying about a mouth infection is if the swelling increases, the inside of the mouth starts turning red instead of pink, or you see discharge (this can be bloody/mucousy in the case of a run-of-the-mill mouth infection or like cottage cheese in the case of mouth rot).