From: Radoslaw Zarzynski Date: Thu, 13 Sep 2018 19:58:11 +0000 (+0200) Subject: common: drop/mark-as-final getters of buffer::raw for palign. X-Git-Tag: v14.0.1~278^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3be42db16e6d956360282ba433779430d499fe4f;p=ceph.git common: drop/mark-as-final getters of buffer::raw for palign. Signed-off-by: Radoslaw Zarzynski --- 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