]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: add operator '+' to paddr_t
authorXuehan Xu <xxhdx1985126@gmail.com>
Fri, 18 Feb 2022 09:32:10 +0000 (17:32 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Sun, 24 Apr 2022 01:34:28 +0000 (09:34 +0800)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/os/seastore/seastore_types.h

index adfc0b2d8adba4894e0abb3721cd4b2fd6e8516b..c62a63980224a7564fa878ca2954ec98068dc6e5 100644 (file)
@@ -513,6 +513,9 @@ public:
   const blk_paddr_t& as_blk_paddr() const;
 
   paddr_t operator-(paddr_t rhs) const;
+  paddr_t operator+(int32_t o) const {
+    return add_offset(o);
+  }
 
   bool is_delayed() const {
     return get_device_id() == DEVICE_ID_DELAYED;