Signed-off-by: Samuel Just <sjust@redhat.com>
length,
ref->get_bptr()).safe_then(
[ref=std::move(ref)]() mutable {
+ ref->on_clean_read();
ref->complete_io();
return get_extent_ertr::make_ready_future<TCachedExtentRef<T>>(
std::move(ref));
*/
virtual void on_initial_write() {}
+ /**
+ * on_clean_read
+ *
+ * Called after read of initially written extent.
+ * State will be CLEAN. Implentation may use this
+ * call to fixup the buffer with the newly available
+ * absolute get_paddr().
+ */
+ virtual void on_clean_read() {}
+
/**
* on_delta_write
*