shithub: gefs

Download patch

ref: bd1d74ba77fc8777d51038f65190ab3506bc1388
parent: f37db7220322719d490b6031719a5a18f26daeec
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 30 23:15:01 EST 2023

fs: fix dent leak

we walk1 the dent when creating a file, so we need
to clunk the old dent

--- a/fs.c
+++ b/fs.c
@@ -1473,6 +1473,7 @@
 	upsert(f->mnt, mb, nm);
 
 	de = getdent(f->qpath, &d);
+	clunkdent(f->dent);
 	f->mode = mode2bits(m->mode);
 	f->pqpath = f->qpath;
 	f->qpath = d.qid.path;