]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Move bdrv_truncate() implementation to io.c
authorKevin Wolf <kwolf@redhat.com>
Tue, 26 Jun 2018 11:55:20 +0000 (13:55 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Jun 2018 12:20:56 +0000 (14:20 +0200)
commit3d9f2d2af63fda5f0404fb85ea80161837a4e4e3
tree44c47fc34823748d15abd55ae4c54b85a8e4e0a7
parent47e86b868d57ffe13162ca44e5f6a51c15c4a769
block: Move bdrv_truncate() implementation to io.c

This moves the bdrv_truncate() implementation from block.c to block/io.c
so it can have access to the tracked requests infrastructure.

This involves making refresh_total_sectors() public (in block_int.h).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
block/io.c
include/block/block_int.h