When filing nail holes, cracks and knots on surfaces that will receive paint, the putty should be applied:

When filing nail holes, cracks and knots on surfaces that will receive paint, the putty should be applied: