]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/cache/pwl/LogEntry.h
import ceph 16.2.7
[ceph.git] / ceph / src / librbd / cache / pwl / LogEntry.h
index b29d7fb88bcb3439fd2da04f53d90ef19c3055b7..a5889a13bc79d9463d2e5918d1c27707215fcd8b 100644 (file)
@@ -25,7 +25,7 @@ class GenericLogEntry {
 public:
   WriteLogCacheEntry ram_entry;
   WriteLogCacheEntry *cache_entry = nullptr;
-  uint32_t log_entry_index = 0;
+  uint64_t log_entry_index = 0;
   bool completed = false;
   GenericLogEntry(uint64_t image_offset_bytes = 0, uint64_t write_bytes = 0)
     : ram_entry(image_offset_bytes, write_bytes) {
@@ -217,9 +217,8 @@ public:
   virtual buffer::list &get_cache_bl() = 0;
 
   BlockExtent block_extent();
-  unsigned int reader_count() const;
+  virtual unsigned int reader_count() const = 0;
   /* Constructs a new bl containing copies of cache_bp */
-  void copy_cache_bl(bufferlist *out_bl) override {};
   bool can_retire() const override {
     return (this->completed && this->get_flushed() && (0 == reader_count()));
   }