diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2015-04-28 14:27:50 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-04-28 15:36:17 +0200 |
commit | e0c47b6cb1de430fbc6f828f7acffa851c580840 (patch) | |
tree | d16c0a371a10ec53b673b4aff5327503485bada3 /include/block | |
parent | 4f5472cb2d3d37ec3282cc3829612f9d696c2df7 (diff) |
block: add bdrv_set_dirty()/bdrv_reset_dirty() to block_int.h
The dirty bitmap functions are called from the block I/O processing
code. Make them visible to block_int.h users so they can be used
outside block.c.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/block_int.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index e0d5561678..5ad20b2e10 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -626,4 +626,8 @@ bool blk_dev_is_tray_open(BlockBackend *blk); bool blk_dev_is_medium_locked(BlockBackend *blk); void blk_dev_resize_cb(BlockBackend *blk); +void bdrv_set_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors); +void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector, + int nr_sectors); + #endif /* BLOCK_INT_H */ |