]> Git Repo - qemu.git/commit
cow: use bdrv_co_is_allocated()
authorStefan Hajnoczi <[email protected]>
Wed, 23 Nov 2011 15:00:04 +0000 (15:00 +0000)
committerKevin Wolf <[email protected]>
Mon, 5 Dec 2011 13:51:38 +0000 (14:51 +0100)
commite94d13873334b1880746feca59ce84c0eabc1021
treeac5c043cae5dec3f226b29a5173ca8ce4b49867b
parentfb0490f69feb96b7e92457f176dc834ff0b00b09
cow: use bdrv_co_is_allocated()

Now that bdrv_co_is_allocated() is available we can use it instead of
the synchronous bdrv_is_allocated() interface.  This is a follow-up that
Kevin Wolf <[email protected]> pointed out after applying the series that
introduces bdrv_co_is_allocated().

It is safe to make cow_read() a coroutine_fn because its only caller is
a coroutine_fn.

Signed-off-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/cow.c
This page took 0.02581 seconds and 4 git commands to generate.