]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Split bdrv_move_feature_fields()
authorKevin Wolf <kwolf@redhat.com>
Thu, 17 Sep 2015 10:33:26 +0000 (12:33 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 16 Oct 2015 13:34:29 +0000 (15:34 +0200)
commit063dd40e110eba7fffff09850ea9116b8dee2ae6
treec4f189b614cea7a709fe132ac31ea70e53d8748c
parent5db15a57697063b9062a015dbc6d5d38211f2df1
block: Split bdrv_move_feature_fields()

After bdrv_swap(), some fields must be moved back to their original BDS
to compensate for the effects that a swap of the contents of the objects
has while keeping the old addresses. Other fields must be moved back
because they should logically be moved and must stay on top

When replacing bdrv_swap() with operations changing the pointers in the
parents, we only need the latter and must avoid swapping the former.
Split the function accordingly.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c