block/backup: move write_flags calculation inside backup_job_create
commit843670f30f35935cfd7781b6a49c258f22261b1d
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 1 Oct 2019 13:14:06 +0000 (1 16:14 +0300)
committerMax Reitz <mreitz@redhat.com>
Thu, 10 Oct 2019 08:56:18 +0000 (10 10:56 +0200)
treecc5ef59875b1a46b9b784dc5c2e123e43625ee81
parenta6ffe1998cfe1fd3cd83de0a7d1dd16eb514f987
block/backup: move write_flags calculation inside backup_job_create

This is logic-less refactoring, which simplifies further patch, as
we'll need write_flags for backup-top filter creation and backup-top
should be created before block job creation.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20191001131409.14202-3-vsementsov@virtuozzo.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/backup.c