Searched refs:new_bytes (Results 1 – 4 of 4) sorted by relevance
/qemu/block/ |
H A D | reqlist.c | 69 void coroutine_fn reqlist_shrink_req(BlockReq *req, int64_t new_bytes) in reqlist_shrink_req() argument 71 if (new_bytes == req->bytes) { in reqlist_shrink_req() 75 assert(new_bytes > 0 && new_bytes < req->bytes); in reqlist_shrink_req() 77 req->bytes = new_bytes; in reqlist_shrink_req()
|
H A D | block-copy.c | 233 int64_t new_bytes) in block_copy_task_shrink() argument 236 if (new_bytes == task->req.bytes) { in block_copy_task_shrink() 240 assert(new_bytes > 0 && new_bytes < task->req.bytes); in block_copy_task_shrink() 242 task->s->in_flight_bytes -= task->req.bytes - new_bytes; in block_copy_task_shrink() 244 task->req.offset + new_bytes, in block_copy_task_shrink() 245 task->req.bytes - new_bytes); in block_copy_task_shrink() 247 reqlist_shrink_req(&task->req, new_bytes); in block_copy_task_shrink()
|
H A D | io.c | 3546 int64_t old_size, new_bytes; in bdrv_co_truncate() local 3578 new_bytes = offset - old_size; in bdrv_co_truncate() 3580 new_bytes = 0; in bdrv_co_truncate() 3584 tracked_request_begin(&req, bs, offset - new_bytes, new_bytes, in bdrv_co_truncate() 3590 if (new_bytes) { in bdrv_co_truncate() 3593 ret = bdrv_co_write_req_prepare(child, offset - new_bytes, new_bytes, &req, in bdrv_co_truncate() 3614 if (new_bytes && backing) { in bdrv_co_truncate() 3658 bdrv_co_write_req_finish(child, offset - new_bytes, new_bytes, &req, 0); in bdrv_co_truncate()
|
/qemu/include/block/ |
H A D | reqlist.h | 68 void coroutine_fn reqlist_shrink_req(BlockReq *req, int64_t new_bytes);
|