ref: 4e0e682ebbfd63916d8bf58a4f4795b69d37d108
parent: 024a92de17a267c2dac06da7023e5155923684be
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Apr 28 13:05:40 EDT 2023
gefs: only sync when there's work to do
--- a/blk.c
+++ b/blk.c
@@ -1106,7 +1106,11 @@
Blk *b;
int i;
+ if(fs->rdonly)
+ return;
qlock(&fs->synclk);
+ if(!fs->snap.dirty)
+ return;
flushdlcache(0);
fs->syncing = fs->nsyncers;
for(i = 0; i < fs->nsyncers; i++){