1
0
mirror of https://github.com/ceph/ceph synced 2025-03-30 23:40:09 +00:00

common: drop zero_copy_to_fd() from ceph::buffer interfaces.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
Radoslaw Zarzynski 2018-09-11 13:20:23 +02:00
parent df90885ed1
commit e81d55803f
3 changed files with 0 additions and 10 deletions

View 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)

View 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

View 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