ref: dde671477e5981924e8b07e3342307fc28f090c5
parent: 800334cb8d11b5fe1bd4ef40bdc53fac49a2ee21
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Feb 22 02:28:25 EST 2026
gefs: count all deadlist nodes in dlcount we missed the deadlist nodes that were loaded from disk into a newly allocated chunk.
--- a/sys/src/cmd/gefs/snap.c
+++ b/sys/src/cmd/gefs/snap.c
@@ -86,6 +86,7 @@
if((dl = dlcacheget(gen, bgen)) != nil)
return dl;
dl = emalloc(sizeof(Dlist), 1);
+ fs->dlcount++;
if(waserror()){fs->dlcount--;
free(dl);
@@ -109,7 +110,6 @@
dl->hd.addr = -1;
dl->tl.addr = -1;
dl->ins = nil;
- fs->dlcount++;
m.op = Oinsert;
dlist2kv(dl, &m, kvbuf, sizeof(kvbuf));
--
⑨