summaryrefslogtreecommitdiffstats
path: root/src/include/buffer_raw.h
diff options
context:
space:
mode:
authorRadoslaw Zarzynski <rzarzyns@redhat.com>2018-09-13 21:58:11 +0200
committerRadoslaw Zarzynski <rzarzyns@redhat.com>2018-09-13 22:01:36 +0200
commit3be42db16e6d956360282ba433779430d499fe4f (patch)
tree57980ab9ec6dbd150184402315ae167c2575f89f /src/include/buffer_raw.h
parentMerge pull request #23957 from tchaikov/wip-crimson-logging (diff)
downloadceph-3be42db16e6d956360282ba433779430d499fe4f.tar.xz
ceph-3be42db16e6d956360282ba433779430d499fe4f.zip
common: drop/mark-as-final getters of buffer::raw for palign.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Diffstat (limited to 'src/include/buffer_raw.h')
-rw-r--r--src/include/buffer_raw.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/include/buffer_raw.h b/src/include/buffer_raw.h
index 0c6513c8036..943ccda910e 100644
--- a/src/include/buffer_raw.h
+++ b/src/include/buffer_raw.h
@@ -92,12 +92,9 @@ public:
virtual int zero_copy_to_fd(int fd, loff_t *offset) {
return -ENOTSUP;
}
- virtual bool is_page_aligned() {
+ virtual bool is_page_aligned() final {
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