]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: drop/mark-as-final getters of buffer::raw for palign.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 13 Sep 2018 19:58:11 +0000 (21:58 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 13 Sep 2018 20:01:36 +0000 (22:01 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/include/buffer_raw.h

index 0c6513c8036ed969f0d09375b97cbb085a6b9f8f..943ccda910e1ce3bb1433b00646da19adc99f3b5 100644 (file)
@@ -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