ref: a5fb51c5b189377a9c4526e3794ac1e4ac13e879
parent: c038601886c153ec178c4b042e3cc62a90f17666
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jun 7 20:26:23 EDT 2014
omap: remove Block refcounting
--- a/sys/src/9/omap/ucallocb.c
+++ b/sys/src/9/omap/ucallocb.c
@@ -33,8 +33,6 @@
b->list = nil;
b->free = 0;
b->flag = 0;
- b->ref = 0;
- _xinc(&b->ref);
/* align start of data portion by rounding up */
addr = (ulong)b;
@@ -117,15 +115,9 @@
ucfreeb(Block *b)
{void *dead = (void*)Bdead;
- long ref;
- if(b == nil || (ref = _xdec(&b->ref)) > 0)
+ if(b == nil)
return;
-
- if(ref < 0){- dumpstack();
- panic("ucfreeb: ref %ld; caller pc %#p", ref, getcallerpc(&b));- }
/*
* drivers which perform non cache coherent DMA manage their own buffer
--
⑨