Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 1997 14:19:44 +0200
From:      Poul-Henning Kamp <phk@dk.tfs.com>
To:        current@freebsd.org
Subject:   kernel patch testing please!
Message-ID:  <10667.872425184@critter.dk.tfs.com>

next in thread | raw e-mail | index | archive | help

Can I get somebody to run this patch a bit ?  I'm interested in 
filesystem performance measurements (ie: http hits/day, worldstone
or similar).

Poul-Henning

Index: vfs_cache.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/vfs_cache.c,v
retrieving revision 1.26
diff -u -r1.26 vfs_cache.c
--- vfs_cache.c	1997/08/04 07:31:36	1.26
+++ vfs_cache.c	1997/08/24 09:57:57
@@ -234,7 +250,13 @@
 			return;
 		}
 	}
-	 
+
+	/* If we're adding a directory, note the parent while we can */
+	if (vp && vp->v_type == VDIR) {
+		vp->v_dd = dvp;
+		vp->v_ddid = dvp->v_id;
+	}
+	
 	ncp = (struct namecache *)
 		malloc(sizeof *ncp + cnp->cn_namelen, M_CACHE, M_WAITOK);
 	bzero((char *)ncp, sizeof *ncp);

--
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@tfs.com	    TRW Financial Systems, Inc.
Future will arrive by its own means, progress not so.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10667.872425184>