fellow_log: size log regions by rounded down log2

parent 5ad6768b
......@@ -3810,6 +3810,10 @@ fellow_logregion_size(const struct fellow_fd *ffd, size_t hint)
{
size_t nsz;
if (hint == 0)
hint = 1;
hint = (size_t)1 << log2down(hint);
/* calc blocks */
nsz = 1 + ffd->size / hint; /* DLE_OBJ_ADD */
nsz *= OBJDLE_FACTOR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment