diff options
author | Kefu Chai <tchaikov@gmail.com> | 2018-09-17 09:55:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 09:55:10 +0200 |
commit | f557a78540e56a3197ca0e3173cc726afc18ac28 (patch) | |
tree | 175052f321503f87f0ee4e792af17c0b3a154a41 | |
parent | Merge pull request #24061 from liewegas/wip-35923 (diff) | |
parent | common: drop is_page_aligned() of buffer::raw entirely. (diff) | |
download | ceph-f557a78540e56a3197ca0e3173cc726afc18ac28.tar.xz ceph-f557a78540e56a3197ca0e3173cc726afc18ac28.zip |
Merge pull request #24087 from rzarzynski/wip-common-buffer_raw-drop-page-align-getters
common: drop/mark-as-final getters of buffer::raw for palign.
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
-rw-r--r-- | src/include/buffer_raw.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/include/buffer_raw.h b/src/include/buffer_raw.h index 0c6513c8036..53f60e74d07 100644 --- a/src/include/buffer_raw.h +++ b/src/include/buffer_raw.h @@ -92,12 +92,6 @@ public: virtual int zero_copy_to_fd(int fd, loff_t *offset) { return -ENOTSUP; } - virtual bool is_page_aligned() { - return ((long)data & ~CEPH_PAGE_MASK) == 0; - } - bool is_n_page_sized() { - return (len & ~CEPH_PAGE_MASK) == 0; - } 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 |