summaryrefslogtreecommitdiffstats
path: root/sys/netatm/atm_cm.c
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-04-24 18:06:18 +0000
committerarr <arr@FreeBSD.org>2002-04-24 18:06:18 +0000
commit35e5b8d0ded86e3e6e3110408146a376d4717ec1 (patch)
tree11ccdf99c5d64e678a1c24105661ce23a0e1df1c /sys/netatm/atm_cm.c
parentcb31a822f6f1f927a6992127a595e7eb9727a99e (diff)
downloadFreeBSD-src-35e5b8d0ded86e3e6e3110408146a376d4717ec1.zip
FreeBSD-src-35e5b8d0ded86e3e6e3110408146a376d4717ec1.tar.gz
- Remove atm_attributes_pool and the relating atm_allocate() and atm_free()
calls associated with the pool and the objects allocated out from the pool. - Insert atm_attributes_zone which is a uma_zone that is used just as the atm_attributes_pool was (including the max objects value). Also, used the appropriate zalloc and zfree's where necesary.
Diffstat (limited to 'sys/netatm/atm_cm.c')
-rw-r--r--sys/netatm/atm_cm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c
index f509f38..d8dccef 100644
--- a/sys/netatm/atm_cm.c
+++ b/sys/netatm/atm_cm.c
@@ -709,7 +709,7 @@ atm_cm_listen(epp, token, ap, copp)
/*
* Get an attribute block and save listening attributes
*/
- cop->co_lattr = (Atm_attributes *)atm_allocate(&atm_attributes_pool);
+ cop->co_lattr = uma_zalloc(atm_attributes_zone, 0);
if (cop->co_lattr == NULL) {
err = ENOMEM;
goto done;
@@ -740,7 +740,7 @@ done:
*/
if (cop) {
if (cop->co_lattr)
- atm_free((caddr_t)cop->co_lattr);
+ uma_zfree(atm_attributes_zone, cop->co_lattr);
atm_free((caddr_t)cop);
}
} else {
@@ -2360,7 +2360,7 @@ atm_cm_closeconn(cop, cause)
switch (cop->co_state) {
case COS_LISTEN:
- atm_free((caddr_t)cop->co_lattr);
+ uma_zfree(atm_attributes_zone, cop->co_lattr);
UNLINK(cop, Atm_connection, atm_listen_queue, co_next);
break;
OpenPOWER on IntegriCloud