Flux change in type II superconductors induced by moving dislocations