From 4265ecedb0e98773e3785627c73de67b726f88fc Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 30 Sep 2019 11:45:02 -0700 Subject: [PATCH] scoutfs: increase max btree value length Now that we're storing fs items in the btree we need a larger max value length. Signed-off-by: Zach Brown --- kmod/src/format.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kmod/src/format.h b/kmod/src/format.h index 2534fe16..f189f623 100644 --- a/kmod/src/format.h +++ b/kmod/src/format.h @@ -160,9 +160,10 @@ struct scoutfs_key_be { __u8 _sk_fourth; }__packed; -/* chose reasonable max key and value lens that have room for some u64s */ +/* chose reasonable max key lens that have room for some u64s */ #define SCOUTFS_BTREE_MAX_KEY_LEN 40 -#define SCOUTFS_BTREE_MAX_VAL_LEN 64 +/* when we split we want to have multiple items on each side */ +#define SCOUTFS_BTREE_MAX_VAL_LEN (SCOUTFS_BLOCK_SIZE / 8) /* * The min number of free bytes we must leave in a parent as we descend