Roger Federer overcame a few lapses in concentration to ease into the third round of the French Open with a 6-2, 7-6, 6-3 win against Spain's Marcel Granollers.

Defending women's champion Maria Sharapova also moved into the third round with a 6-3, 6-1 defeat of fellow Russian Vitalia Diatchenko.

Federer, the 17-time grand slam champion from Switzerland, who faces either Marcos Baghdatis of Cyprus or Bosnian Damir Dzumhur, cantered through the opening set but then let his guard down.

Switzerland's Stanislas Wawrinka followed Federer into the third round with a 6-3, 6-4, 5-7, 6-3 win over Serbia's Dusan Lajovic.

Men's results:

2-Roger Federer (Switzerland) beat Marcel Granollers (Spain) 6-2 7-6(1) 6-3

8-Stanislas Wawrinka (Switzerland) beat Dusan Lajovic (Serbia) 6-3 6-4 5-7 6-3

Steve Johnson (U.S.) beat Sergiy Stakhovsky (Ukraine) 2-6 6-3 7-6(5) 7-6(6)

12-Gilles Simon (France) beat Martin Klizan (Slovakia) 7-5 6-2 6-3

Two-time winner Sharapova through

Sharapova, the world number two, took a while to get into her stride but romped away from her 91st-ranked opponent.

Sharapova, who has won two of the last three French Opens and was beaten by Serena Williams in the 2013 final, broke serve in the first game but a double fault gifted Diatchenko a break back to 2-2.

Sharapova has won two of the last three French Opens [Reuters]

Diatchenko then coughed up two double faults in the next game to hand the advantage back to Sharapova and another double fault brought a lukewarm first set to a conclusion.

Sharapova then powered through the second set in 35 minutes, offering up few errors.

Things will toughen up for the five-time grand slam champion in the next round when she faces Australia's Samantha Stosur, the runner-up in 2010 and twice a semi-finalist, who she beat in the fourth round last year.

Stosur wasted little time in beating Amandine Hesse of France 6-0, 6-1.

Lisicki was leading Australian Gavrilova 6-1 when her opponent retired hurt [EPA]

Women's results:

2-Maria Sharapova (Russia) beat Vitalia Diatchenko (Russia) 6-3 6-1

Annika Beck (Germany) beat Paula Kania (Poland) 6-2 6-2

13-Lucie Safarova (Czech Republic) beat Kurumi Nara (Japan) 6-2 6-0

26-Samantha Stosur (Australia) beat Amandine Hesse (France) 6-0 6-1

20-Sabine Lisicki (Germany) beat Daria Gavrilova (Australia) 6-1 (Gavrilova retired)

Source: Reuters