virtio_balloon: fix shrinker count

Instead of multiplying by page order, virtio balloon divided by page
order. The result is that it can return 0 if there are a bit less
than MAX_ORDER - 1 pages in use, and then shrinker scan won't be called.

Cc: stable@vger.kernel.org
Fixes: 71994620bb25 ("virtio_balloon: replace oom notifier with shrinker")
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>

authored by Wei Wang and committed by Michael S. Tsirkin c9a6820f 60bd04f2

Changed files
+1 -1
drivers
+1 -1
drivers/virtio/virtio_balloon.c
··· 826 826 unsigned long count; 827 827 828 828 count = vb->num_pages / VIRTIO_BALLOON_PAGES_PER_PAGE; 829 - count += vb->num_free_page_blocks >> VIRTIO_BALLOON_FREE_PAGE_ORDER; 829 + count += vb->num_free_page_blocks << VIRTIO_BALLOON_FREE_PAGE_ORDER; 830 830 831 831 return count; 832 832 }