shithub: gefs

Download patch

ref: f595562c5863fbc6a031acb7cc0be337a9cf5ea0
parent: 51bfb048fabf48f78311194e0aca9ce672756cd7
author: Michael Forney <[email protected]>
date: Thu Feb 10 05:46:49 EST 2022

blk: move freep update to inside freelk

--- a/blk.c
+++ b/blk.c
@@ -880,6 +880,7 @@
 	if(fs->freep != nil){
 		p = fs->freep->next;
 		fs->freep->next = nil;
+		fs->freep = fs->freehd;
 	}
 	unlock(&fs->freelk);
 
@@ -889,7 +890,6 @@
 		free(p);
 		p = n;
 	}
-	fs->freep = fs->freehd;
 }
 
 int