ref: d75b52f173865461df0265daeb79faec068642cb
parent: c2c5d8143a4490f564ad74962116fd1614bfb94f
author: Ori Bernstein <[email protected]>
date: Tue Dec 5 16:29:49 EST 2023
blk: use error() for blk alloc failure
--- a/blk.c
+++ b/blk.c
@@ -489,7 +489,7 @@
t = a->free;
r = (Arange*)t->root;
if(!force && a->size - a->used <= a->reserve)
- return -1;
+ error(Efull);
if(r == nil)
broke(Estuffed);