ref: 6b77f30c1b243f87562906e44332f5a9b6c328e0
parent: 2e813791d4890adf9173f1acc25e8eab4a4745bf
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Apr 29 16:56:51 EDT 2023
gefs: fix stupid in last commit.
--- a/blk.c
+++ b/blk.c
@@ -1109,8 +1109,10 @@
if(fs->rdonly)
return;
qlock(&fs->synclk);
- if(!fs->snap.dirty)
+ if(!fs->snap.dirty){
+ qunlock(&fs->synclk);
return;
+ }
flushdlcache(0);
fs->syncing = fs->nsyncers;
for(i = 0; i < fs->nsyncers; i++){
--- a/fs.c
+++ b/fs.c
@@ -167,7 +167,6 @@
fprint(2, "%s\n", buf);
close(c->rfd);
close(c->wfd);
- abort();
}
static void