Skip to content

Commit 9e89c3c

Browse files
committed
crimson/os/seastore/lba_mapping: treat indirect mappings as valid
non-clone ones Signed-off-by: Xuehan Xu <[email protected]>
1 parent 01964fd commit 9e89c3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/crimson/os/seastore/lba_mapping.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ class LBAMapping {
8989
bool is_stable() const;
9090
bool is_data_stable() const;
9191
bool is_clone() const {
92+
assert(!is_null());
93+
if (is_indirect()) {
94+
return false;
95+
}
9296
assert(is_linked_direct());
9397
assert(!direct_cursor->is_end());
9498
return direct_cursor->get_refcount() > 1;

0 commit comments

Comments
 (0)