From owner-cvs-all Sun Sep 17 0:26:50 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7A71637B423; Sun, 17 Sep 2000 00:26:42 -0700 (PDT) Received: (from bp@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA43768; Sun, 17 Sep 2000 00:26:42 -0700 (PDT) (envelope-from bp@FreeBSD.org) Message-Id: <200009170726.AAA43768@freefall.freebsd.org> From: Boris Popov Date: Sun, 17 Sep 2000 00:26:42 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_cache.c vfs_lookup.c src/sys/sys namei.h src/sys/ufs/ufs ufs_lookup.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bp 2000/09/17 00:26:42 PDT Modified files: sys/kern vfs_cache.c vfs_lookup.c sys/sys namei.h sys/ufs/ufs ufs_lookup.c Log: Add new flag PDIRUNLOCK to the component.cn_flags which should be set by filesystem lookup() routine if it unlocks parent directory. This flag should be carefully tracked by filesystems if they want to work properly with nullfs and other stacked filesystems. VFS takes advantage of this flag to perform symantically correct usage of vrele() instead of vput() if parent directory already unlocked. If filesystem fails to track this flag then previous codepath in VFS left unchanged. Convert UFS code to set PDIRUNLOCK flag if necessary. Other filesystmes will be changed after some period of testing. Reviewed in general by: mckusick, dillon, adrian Obtained from: NetBSD Revision Changes Path 1.49 +19 -8 src/sys/kern/vfs_cache.c 1.40 +8 -3 src/sys/kern/vfs_lookup.c 1.30 +2 -1 src/sys/sys/namei.h 1.39 +31 -14 src/sys/ufs/ufs/ufs_lookup.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message