Q:

2007 Camry won't rev past the redline

I have a 2007 Toyota Camry.
It won't rev past the red line. About 6250RPM approximately.
It doesn't matter if it's in P, N, or D or manually on the 1st Gear. It's still the same.
Any idea what might be causing this? I'm pretty sure that it went past the redline before, although I'm not sure when it stopped doing it.
I recently had my fuel filter, transmission oil and transmission oil strainer changed as part of routine maintenance.
Could it be related to this?
EDIT:
The engine is 2AZ-FE (2.4l 4 cylinder)
I remember that the revs went into the red before. Now it stops right at the redline, no matter how much gas I give.
EDIT:
I feel like I've kind of miscommunicated the issue. 
The revs won't go into the Red (pas the white line). I thought that going beyond the white rev lines is normal once in a while, doing a hard acceleration.

A:

Given you say
"I'm pretty sure that it went past the redline before"
I am going to assume that you aren't sure it ever did it.
Cars are not only not designed from the factory to exceed the redline, they are designed with safeguards to prevent the ability to do so.  This could be done several ways including cutting spark or fuel.  The redline is there because that is what the engineers determined as the practical mechanical limit of the engine.  Your peak horsepower is typically reached a couple hundred rpms below it, so the ability to exceed it really does you no good, anyway.
As mentioned in one of the comments, the ability to exceed the redline is not an indicator of engine health and you should not be attempting to exceed it without proper supporting modifications.
To directly answer your question: It is highly unlikely that the maintenance performed affected your engine's ability to exceed the redline.
Re edit:  No, it is not.  That is precisely what the car is designed against doing unless modified.

