From 3be42db16e6d956360282ba433779430d499fe4f Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Thu, 13 Sep 2018 21:58:11 +0200 Subject: [PATCH] common: drop/mark-as-final getters of buffer::raw for palign. Signed-off-by: Radoslaw Zarzynski --- src/include/buffer_raw.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/include/buffer_raw.h b/src/include/buffer_raw.h index 0c6513c8036ed..943ccda910e1c 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 -- 2.39.5