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:
parent
df90885ed1
commit
e81d55803f
src
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user