Postcopy: Avoid 0 length discards
commitd688c62d0928c46437b6b95848922398674538c8
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 13 Jun 2016 11:16:40 +0000 (13 12:16 +0100)
committerAmit Shah <amit.shah@redhat.com>
Thu, 16 Jun 2016 04:20:07 +0000 (16 09:50 +0530)
tree9dcb63d363a2ef3b9e2fd55204d0ce13b8d9fac2
parent49237b856ae58ee7955be0b959c504c51b014f20
Postcopy: Avoid 0 length discards

The discard code in migration/ram.c would send request for
zero length discards in the case where no discards were needed.
It doesn't appear to have had any bad effect.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Message-id: 1465816605-29488-2-git-send-email-dgilbert@redhat.com
Message-Id: <1465816605-29488-2-git-send-email-dgilbert@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
migration/ram.c