]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/lba_mapping: fix LBAMapping::is_zero_reserved()
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 23 Apr 2025 06:22:58 +0000 (14:22 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 24 Apr 2025 01:29:44 +0000 (09:29 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/lba_mapping.h

index 3a0cb59403774936dc2ced57063d37f06b373572..3455c6779b5d4a03437b988820ed9c63f076fa40 100644 (file)
@@ -47,7 +47,7 @@ public:
   virtual bool is_data_stable() const = 0;
   virtual bool is_clone() const = 0;
   bool is_zero_reserved() const {
-    return !get_val().is_real();
+    return get_val().is_zero();
   }
 
   LBAMappingRef duplicate() const;