shithub: gefs

Download patch

ref: 5534d8068efbfafb1379b10942980c119c90571c
parent: 41d10374a9636e23ba1fc81fc97a183b9ab565d8
author: Ori Bernstein <[email protected]>
date: Sat Jan 20 00:25:14 EST 2024

blk: move killblk trace to freeblk for better traces

--- a/blk.c
+++ b/blk.c
@@ -828,6 +828,7 @@
 	Bfree *f;
 
 	if(t == &fs->snap || (t != nil && bp.gen <= t->gen)){
+		tracex("killb", bp, getcallerpc(&t), -1);
 		killblk(t, bp);
 		return;
 	}
--- a/snap.c
+++ b/snap.c
@@ -550,7 +550,6 @@
 	 */
 	if(bp.gen <= t->base)
 		return;
-	traceb("killb", bp);
 	if(t == &fs->snap)
 		dl = &fs->snapdl;
 	else