Unverified Commit c1c9c4c7 authored by Nils Goroll's avatar Nils Goroll

Fix LBUF_DSKPOOL_SIZE

forgot some members in the calculation, so on SmartOS we hit
an assertion that the resulting pool is below 4KB
parent bc73dbc1
......@@ -412,7 +412,8 @@ assert_seq_macros(void)
// <4K to fit in logblk
#define LBUF_DSKPOOL_SIZE \
(((1<<12) - 2 * sizeof(struct buddy_reqs)) / \
(((1<<12) - sizeof(void *) - 2 * ( \
sizeof(struct buddy_reqs) + sizeof(unsigned))) / \
(2 * sizeof(struct i_reqalloc)))
#define LOGBLK_MEMPOOL_SIZE 2
//lint -e{506, 527}
......
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