From: Xuehan Xu Date: Mon, 24 Feb 2025 02:07:06 +0000 (+0800) Subject: crimson/os/seastore/onode: increase the default inline snapset size to X-Git-Tag: testing/wip-pdonnell-testing-20250421.184056-debug~31^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a5181afe4e1e939f18a6fb000c7ba564300b3b43;p=ceph-ci.git crimson/os/seastore/onode: increase the default inline snapset size to 35 So that snapsets for un-snapshoted objects can be store inline with the onode. Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/onode.h b/src/crimson/os/seastore/onode.h index 3013ed8a587..5d507460ded 100644 --- a/src/crimson/os/seastore/onode.h +++ b/src/crimson/os/seastore/onode.h @@ -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};