Redirecting to Svéd–lengyel háború, 1617–29