]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/onode: increase the default inline snapset size to
authorXuehan Xu <xuxuehan@qianxin.com>
Mon, 24 Feb 2025 02:07:06 +0000 (10:07 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Wed, 16 Apr 2025 03:00:15 +0000 (11:00 +0800)
35

So that snapsets for un-snapshoted objects can be store inline with the
onode.

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/onode.h

index 3013ed8a58709105edc58d33bf9b93e258ecb0ea..5d507460ded47761fbd189934f784a4b0da33e81 100644 (file)
@@ -26,7 +26,8 @@ struct onode_layout_t {
   // snapshots.
   // TODO: implement flexible-sized onode value to store inline ss_attr
   // effectively.
-  static constexpr int MAX_SS_LENGTH = 1;
+  // The expected decode size of SnapSet when there's no snapshot
+  static constexpr int MAX_SS_LENGTH = 35;
 
   ceph_le32 size{0};
   ceph_le32 oi_size{0};