shithub: gefs

Download patch

ref: 75476e2449c20db4b07d583f114c968f2a7f04a5
parent: e152be43422edea88c9250da2e2e1afcaaa9e8f7
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Apr 30 12:59:49 EDT 2023

qgen: goal was to inc only on sync

--- a/blk.c
+++ b/blk.c
@@ -985,7 +985,7 @@
 {
 	Arena *a;
 
-	b->qgen = aincv(&fs->qgen, 1);
+	b->qgen = agetv(&fs->qgen);
 	a = getarena(b->bp.addr);
 	assert(checkflag(b, Bdirty));
 	assert(b->bp.addr >= 0);
@@ -1102,6 +1102,7 @@
 		return;
 	}
 	flushdlcache(0);
+	aincv(&fs->qgen, 1);
 	fs->syncing = fs->nsyncers;
 	for(i = 0; i < fs->nsyncers; i++){
 		b = cachepluck();