pain after getting fillings

I got two of my teeth filled on Wednesday of last week due to pesky little cavities. They were two of my farthest back teeth on the top right (which are the ones I chew with the most.) At first they didn't hurt but now every time I eat they hurt. Is something wrong or is it just typical pain that will go away?