ZTracer::Trace trace;
auto req = io::ImageDispatchSpec::create_read(
*image_ctx, io::IMAGE_DISPATCH_LAYER_WRITEBACK_CACHE, aio_comp,
- std::move(image_extents), io::ReadResult{bl},
- image_ctx->get_data_io_context(),
- fadvise_flags, 0, trace);
+ std::move(image_extents), io::ImageArea::DATA, io::ReadResult{bl},
+ image_ctx->get_data_io_context(), fadvise_flags, 0, trace);
req->send();
}
ZTracer::Trace trace;
auto req = io::ImageDispatchSpec::create_write(
*image_ctx, io::IMAGE_DISPATCH_LAYER_WRITEBACK_CACHE, aio_comp,
- std::move(image_extents), std::move(bl),
- image_ctx->get_data_io_context(), fadvise_flags, trace);
+ std::move(image_extents), io::ImageArea::DATA, std::move(bl),
+ fadvise_flags, trace);
req->send();
}
on_finish, image_ctx, io::AIO_TYPE_DISCARD);
ZTracer::Trace trace;
auto req = io::ImageDispatchSpec::create_discard(
- *image_ctx, io::IMAGE_DISPATCH_LAYER_WRITEBACK_CACHE, aio_comp, offset,
- length, discard_granularity_bytes,
- image_ctx->get_data_io_context(), trace);
+ *image_ctx, io::IMAGE_DISPATCH_LAYER_WRITEBACK_CACHE, aio_comp,
+ {{offset, length}}, io::ImageArea::DATA, discard_granularity_bytes, trace);
req->send();
}
on_finish, image_ctx, io::AIO_TYPE_WRITESAME);
ZTracer::Trace trace;
auto req = io::ImageDispatchSpec::create_write_same(
- *image_ctx, io::IMAGE_DISPATCH_LAYER_WRITEBACK_CACHE, aio_comp, offset,
- length, std::move(bl), image_ctx->get_data_io_context(),
+ *image_ctx, io::IMAGE_DISPATCH_LAYER_WRITEBACK_CACHE, aio_comp,
+ {{offset, length}}, io::ImageArea::DATA, std::move(bl),
fadvise_flags, trace);
req->send();
}
ZTracer::Trace trace;
auto req = io::ImageDispatchSpec::create_compare_and_write(
*image_ctx, io::IMAGE_DISPATCH_LAYER_WRITEBACK_CACHE, aio_comp,
- std::move(image_extents), std::move(cmp_bl), std::move(bl),
- mismatch_offset, image_ctx->get_data_io_context(),
- fadvise_flags, trace);
+ std::move(image_extents), io::ImageArea::DATA, std::move(cmp_bl),
+ std::move(bl), mismatch_offset, fadvise_flags, trace);
req->send();
}