Revision d8a852fa xseg/xseg/xseg.c
b/xseg/xseg/xseg.c | ||
---|---|---|
778 | 778 |
priv->segment_type = *segtype; |
779 | 779 |
priv->peer_type = *peertype; |
780 | 780 |
priv->wakeup = wakeup; |
781 |
priv->req_data = xhash_new(3, INTEGER); //FIXME should be relative to XSEG_DEF_REQS |
|
781 |
priv->req_data = xhash_new(3, 0, INTEGER); //FIXME should be relative to XSEG_DEF_REQS
|
|
782 | 782 |
if (!priv->req_data) |
783 | 783 |
goto err_priv; |
784 | 784 |
xlock_release(&priv->reqdatalock); |
... | ... | |
1542 | 1542 |
req_data = xseg->priv->req_data; |
1543 | 1543 |
r = xhash_insert(req_data, (xhashidx) xreq, (xhashidx) data); |
1544 | 1544 |
if (r == -XHASH_ERESIZE) { |
1545 |
req_data = xhash_resize(req_data, xhash_grow_size_shift(req_data), NULL); |
|
1545 |
req_data = xhash_resize(req_data, xhash_grow_size_shift(req_data), 0, NULL);
|
|
1546 | 1546 |
if (req_data) { |
1547 | 1547 |
xseg->priv->req_data = req_data; |
1548 | 1548 |
r = xhash_insert(req_data, (xhashidx) xreq, (xhashidx) data); |
... | ... | |
1569 | 1569 |
if (r >= 0) { |
1570 | 1570 |
r = xhash_delete(req_data, (xhashidx) xreq); |
1571 | 1571 |
if (r == -XHASH_ERESIZE) { |
1572 |
req_data = xhash_resize(req_data, xhash_shrink_size_shift(req_data), NULL); |
|
1572 |
req_data = xhash_resize(req_data, xhash_shrink_size_shift(req_data), 0, NULL);
|
|
1573 | 1573 |
if (req_data){ |
1574 | 1574 |
xseg->priv->req_data = req_data; |
1575 | 1575 |
r = xhash_delete(req_data, (xhashidx) xreq); |
Also available in: Unified diff