shithub: gefs

Download patch

ref: 0cd57a02a29ae329b70f185d957a1008660d43e4
parent: f1deaa515eea5586672c43158af2fa2c451e25ef
author: Ori Bernstein <[email protected]>
date: Sat Oct 28 23:33:21 EDT 2023

gefs: disable online log compression

it seems buggy for now.

--- a/fs.c
+++ b/fs.c
@@ -2292,7 +2292,7 @@
 void
 runtasks(int id, void *)
 {
-	int i, c;
+//	int i, c;
 	Amsg *a;
 
 	while(1){
@@ -2317,18 +2317,19 @@
 		 * 1/4 of our reserved emergency space seems like a good
 		 * heuristic for big, but it was picked arbitrarily.
 		 */
-		qlock(&fs->synclk);
-		for(i = 0; i < fs->narena; i++){
-			epochstart(id);
-			qlock(&fs->arenas[i]);
-			c = fs->arenas[i].nlog > fs->arenas[i].reserve/(4*Blksz);
-			if(c){
-				if(compresslog(&fs->arenas[i]) == -1)
-					fprint(2, "compress log: %r");
-			}
-			qunlock(&fs->arenas[i]);
-			epochend(id);
-		}
-		qunlock(&fs->synclk);
+USED(id);
+//		qlock(&fs->synclk);
+//		for(i = 0; i < fs->narena; i++){
+//			epochstart(id);
+//			qlock(&fs->arenas[i]);
+//			c = fs->arenas[i].nlog > fs->arenas[i].reserve/(4*Blksz);
+//			if(c){
+//				if(compresslog(&fs->arenas[i]) == -1)
+//					fprint(2, "compress log: %r");
+//			}
+//			qunlock(&fs->arenas[i]);
+//			epochend(id);
+//		}
+//		qunlock(&fs->synclk);
 	}
 }