From owner-freebsd-current Sun Aug 24 05:20:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA29764 for current-outgoing; Sun, 24 Aug 1997 05:20:25 -0700 (PDT) Received: from critter.dk.tfs.com (critter.phk.freebsd.dk [195.8.133.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA29758 for ; Sun, 24 Aug 1997 05:20:21 -0700 (PDT) Received: from critter.dk.tfs.com (localhost [127.0.0.1]) by critter.dk.tfs.com (8.8.7/8.8.5) with ESMTP id OAA10669 for ; Sun, 24 Aug 1997 14:19:45 +0200 (CEST) To: current@freebsd.org Subject: kernel patch testing please! From: Poul-Henning Kamp Date: Sun, 24 Aug 1997 14:19:44 +0200 Message-ID: <10667.872425184@critter.dk.tfs.com> Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.