]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore/btree: make updates of lba leaf nodes ptrs
authorXuehan Xu <xuxuehan@qianxin.com>
Sun, 1 Mar 2026 04:42:49 +0000 (12:42 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Mon, 9 Mar 2026 09:56:41 +0000 (17:56 +0800)
commitd54fe470d4bdf71cac20282b1bc8d1bffae02760
tree6274f3a6163d020964b468253d32741652d1c06e
parent6b28b8f94359d08dd10334fbcba5f3f88f508bf6
crimson/os/seastore/btree: make updates of lba leaf nodes ptrs
synchronous with contents updates

Since we need merge content of lba leaf nodes when committing
trim/cleaner transactions, and we rely on the child ptrs to determine
whether to modify mappings of pending leaf nodes. We must make sure
the ptr updates and node content updates are synchronous.

See LBALeafNode::merge_content_to() for detail

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/backref/btree_backref_manager.cc
src/crimson/os/seastore/btree/fixed_kv_btree.h
src/crimson/os/seastore/lba/btree_lba_manager.cc
src/test/crimson/seastore/test_btree_lba_manager.cc