shithub: gefs

Download patch

ref: 8bf1d98e0dcf18c48cd667eae9fa116dc9218908
parent: 1d8c682b27015c8c6d7265decd4837f2f6ecbe5c
author: Ori Bernstein <[email protected]>
date: Wed Feb 28 10:25:22 EST 2024

snap: flush should also set hd/tl.

--- a/snap.c
+++ b/snap.c
@@ -18,6 +18,9 @@
 	traceb("dlflush", dl->ins->bp);
 	enqueue(dl->ins);
 	dropblk(dl->ins);
+	dl->hd = dl->ins->bp;
+	if(dl->tl.addr == dl->hd.addr)
+		dl->tl = dl->hd;
 	dl->ins = nil;
 	/* special case: the snap dlist has gen -1, skip it */
 	if(dl->gen != -1){