git: 9front

Download patch

ref: 83550d836c6a99d1193da81efb18a6f00a464b57
parent: 96128fa26814941985c8f017389ebe5b7a304eac
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Feb 16 05:32:10 EST 2026

we want to transfer ownership of m->ins,
so that when we later flush the deadlist, we don't leaave the
ghost deadlists that are associated with removed snapshots.

--- a/sys/src/cmd/gefs/snap.c
+++ b/sys/src/cmd/gefs/snap.c
@@ -229,8 +229,7 @@
 			d->hd = m->hd;
 			d->tl = m->tl;
 			d->ins = m->ins;
-			if(d->ins != nil)
-				holdblk(d->ins);
+			m->ins = nil;
 		}else{
 			if(m->ins != nil){
 				enqueue(m->ins);
--