GMS got special scrolls a few days after big bang that reset ALL sp.
Any passed mastery books remained passed. For example, before BB, I had level 30 Big Bang passed. After BB, I left it at 4, but it is still unlocked to 30.
If you passed Ifrit 20 or 30, you will have Elquines 20 or 30 unlocked as well.