From e8221ceb32a34cebaef349940dbd164b1d6b70cb Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Thu, 13 Sep 2018 22:54:24 +0200 Subject: [PATCH] common: drop is_page_aligned() of buffer::raw entirely. Signed-off-by: Radoslaw Zarzynski --- src/include/buffer_raw.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/include/buffer_raw.h b/src/include/buffer_raw.h index 943ccda910e1c..53f60e74d07ec 100644 --- a/src/include/buffer_raw.h +++ b/src/include/buffer_raw.h @@ -92,9 +92,6 @@ public: virtual int zero_copy_to_fd(int fd, loff_t *offset) { return -ENOTSUP; } - virtual bool is_page_aligned() final { - return ((long)data & ~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