mov: increase total_size only when it actually increases.