shithub: gefs

Download patch

ref: f523a606d10fe9a219a5716c6a506908749d18ba
parent: 44d3d0c337b3b5078cb56a5853dfc2156124ecc6
author: glenda <glenda@9front.local>
date: Thu Jan 6 14:04:45 EST 2022

snap: fix missing finalizations

--- a/snap.c
+++ b/snap.c
@@ -88,6 +88,7 @@
 	for(i = Ndead-1; i >= 0; i--){
 		if(t->dead[i].tail == nil)
 			continue;
+		finalize(t->dead[i].tail);
 		syncblk(t->dead[i].tail);
 //FIXME		putblk(t->dead[i].tail);
 	}
@@ -196,10 +197,10 @@
 	assert(snap->gen != next->gen);
 	assert(next->prev[0] == snap->gen);
 
-fprint(2, "next tree\n");
-showtreeroot(2, next);
-fprint(2, "snap tree\n");
-showtreeroot(2, snap);
+//fprint(2, "next tree\n");
+//showtreeroot(2, next);
+//fprint(2, "snap tree\n");
+//showtreeroot(2, snap);
 
 	dl = next->dead[Ndead-1];
 	scandead(&next->dead[0], freedead, nil);
@@ -215,9 +216,9 @@
 	}
 	scandead(&dl, redeadlist, next);
 
-fprint(2, "transferred\n");
-showtreeroot(2, next);
-fprint(2, "==================================\n");
+//fprint(2, "transferred\n");
+//showtreeroot(2, next);
+//fprint(2, "==================================\n");
 	return nil;
 }