]> git.proxmox.com Git - qemu.git/commit
block: make bdrv_delete() static
authorFam Zheng <famz@redhat.com>
Fri, 23 Aug 2013 01:14:47 +0000 (09:14 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:08 +0000 (15:25 +0200)
commit4f6fd3491cf0f768b135ed2e242bd1d1d2a2efec
treeb5046de0d490c5770087eeaff3f6190f0f6c22a3
parent9fcb025146676ab376e6159b58f5a5ddb67bf03c
block: make bdrv_delete() static

Manage BlockDriverState lifecycle with refcnt, so bdrv_delete() is no
longer public and should be called by bdrv_unref() if refcnt is
decreased to 0.

This is an identical change because effectively, there's no multiple
reference of BDS now: no caller of bdrv_ref() yet, only bdrv_new() sets
bs->refcnt to 1, so all bdrv_unref() now actually delete the BDS.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
19 files changed:
block.c
block/backup.c
block/blkverify.c
block/cow.c
block/iscsi.c
block/mirror.c
block/qcow.c
block/qcow2.c
block/qed.c
block/sheepdog.c
block/snapshot.c
block/stream.c
block/vmdk.c
block/vvfat.c
blockdev.c
hw/block/xen_disk.c
include/block/block.h
qemu-img.c
qemu-io.c