If you are in a pinch, then PVA can be used as a barrier between peeling paint and a new coat of paint if you do not have a primer. The PVA glue will bind the edges of the peeled paint and provide a tacky surface for the new paint to adhere to once you have removed any large flakes coming away from the wall or ceiling.