ref: deeb8ec05b7b0b9d493ee90258b22f4bc7f4aaa6
parent: e3f72faa42528a76d3c77081bb0bf11a6ea4efa5
author: Ori Bernstein <[email protected]>
date: Fri Nov 3 17:50:05 EDT 2023
style tweaks
--- a/fs.c
+++ b/fs.c
@@ -2220,7 +2220,7 @@
a = &fs->arenas[i];
qlock(a);
if(a->nlog < a->reserve/(10*Blksz)){
- oldhd.addr = -1;
+ oldhd = (Bptr){-1, -1, -1};
qunlock(a);
continue;
}
@@ -2258,8 +2258,8 @@
epochclean();
}
}
-
break;
+
case AOsnap:
qlock(&fs->mutlk);
epochstart(id);
@@ -2267,6 +2267,7 @@
epochend(id);
qunlock(&fs->mutlk);
break;
+
case AOclear:
for(off = am->off; off < am->length; off += Blksz){
qlock(&fs->mutlk);