]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: drop zero_copy_to_fd() from ceph::buffer interfaces.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 11 Sep 2018 11:20:23 +0000 (13:20 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 17 Sep 2018 13:33:26 +0000 (15:33 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/common/buffer.cc
src/include/buffer.h
src/include/buffer_raw.h

index 50574b3ce0d452ebb561db4272da92c4c057a9c2..083e9592d1e89f60bb5f75962a78034266b3c194 100644 (file)
@@ -827,11 +827,6 @@ using namespace ceph;
     return _raw->can_zero_copy();
   }
 
-  int buffer::ptr::zero_copy_to_fd(int fd, int64_t *offset) const
-  {
-    return _raw->zero_copy_to_fd(fd, (loff_t*)offset);
-  }
-
   // -- buffer::list::iterator --
   /*
   buffer::list::iterator operator=(const buffer::list::iterator& other)
index f594551d98460bb1bc13f8bb6ebb121176a9cf9f..368dce7e2ee8400ac18c82f4a4430a5c77278faf 100644 (file)
@@ -336,7 +336,6 @@ namespace buffer CEPH_BUFFER_API {
     void copy_out(unsigned o, unsigned l, char *dest) const;
 
     bool can_zero_copy() const;
-    int zero_copy_to_fd(int fd, int64_t *offset) const;
 
     unsigned wasted() const;
 
@@ -699,7 +698,6 @@ namespace buffer CEPH_BUFFER_API {
 
   private:
     mutable iterator last_p;
-    int zero_copy_to_fd(int fd) const;
 
   public:
     // cons/des
index 53f60e74d07ecc00d05f06995a32ac0ca34340ed..549094172e3ee0b6571a303b5478bcde3fa1f243 100644 (file)
@@ -89,9 +89,6 @@ public:
     virtual bool can_zero_copy() const {
       return false;
     }
-    virtual int zero_copy_to_fd(int fd, loff_t *offset) {
-      return -ENOTSUP;
-    }
     virtual bool is_shareable() {
       // true if safe to reference/share the existing buffer copy
       // false if it is not safe to share the buffer, e.g., due to special