mirror: optimize dirty bitmap filling in mirror_run a bit
commitb7d5062c9cf53f21a555843775392dc03364bbff
authorDenis V. Lunev <den@openvz.org>
Thu, 14 Jul 2016 13:33:27 +0000 (14 16:33 +0300)
committerJeff Cody <jcody@redhat.com>
Tue, 19 Jul 2016 20:54:46 +0000 (19 16:54 -0400)
treebe70af8a1a9e25196243ecfc77003fff4e2ca5f4
parent2f0342efdbb0a3c5b5a6a4f4831cbe90c445510b
mirror: optimize dirty bitmap filling in mirror_run a bit

There is no need to scan allocation tables if we have mark_all_dirty flag
set. Just mark it all dirty.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy<vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1468503209-19498-7-git-send-email-den@openvz.org
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
CC: Max Reitz <mreitz@redhat.com>
CC: Jeff Cody <jcody@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/mirror.c