util: bitmap: Fix value of 'map_alloc' when shrinking bitmap
util: bitmap: Fix value of 'map_alloc' when shrinking bitmap

The virBitmap code uses VIR_RESIZE_N to do quadratic scaling, which
means that along with the number of requested map elements we also need
to keep the number of actually allocated elements for the scaling
algorithm to work properly.

The shrinking code did not fix 'map_alloc' thus virResizeN might
actually not expand the bitmap properly after called on a previously
shrunk bitmap.

fabianfreyer/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,libvirt/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,crobinso/libvirt,olafhering/libvirt,jardasgit/libvirt,andreabolognani/libvirt,zippy2/libvirt,eskultety/libvirt,zippy2/libvirt,nertpinx/libvirt,andreabolognani/libvirt,jfehlig/libvirt,nertpinx/libvirt,crobinso/libvirt,andreabolognani/libvirt,jardasgit/libvirt,nertpinx/libvirt,andreabolognani/libvirt,libvirt/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,libvirt/libvirt,eskultety/libvirt,eskultety/libvirt,crobinso/libvirt,crobinso/libvirt,olafhering/libvirt,zippy2/libvirt,olafhering/libvirt,eskultety/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,libvirt/libvirt,nertpinx/libvirt,eskultety/libvirt,jardasgit/libvirt,olafhering/libvirt,fabianfreyer/libvirt