From owner-cvs-sys Tue Jan 20 02:04:31 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA22242 for cvs-sys-outgoing; Tue, 20 Jan 1998 02:04:31 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA22158; Tue, 20 Jan 1998 02:03:53 -0800 (PST) (envelope-from kato@FreeBSD.org) From: KATO Takenori Received: (from kato@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA01009; Tue, 20 Jan 1998 02:02:56 -0800 (PST) Date: Tue, 20 Jan 1998 02:02:56 -0800 (PST) Message-Id: <199801201002.CAA01009@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/miscfs/union union.h union_subr.c union_vnops.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk kato 1998/01/20 02:02:56 PST Modified files: sys/miscfs/union union.h union_subr.c union_vnops.c Log: - Move SETKLOC and CLEARKLOCK macros into uion.h. - Set UN_ULOCK in union_lock() when UN_KLOCK is set. Caller expects that vnode is locked correctly, and may call another function which expects locked vnode and may unlock the vnode. - Do not assume the behavior of inside functions in FreeBSD's vfs_suber.c is same as 4.4BSD-Lite2. Vnode may be locked in vget() even though flag is zero. (Locked vnode is, of course, unlocked before returning from vget.) Revision Changes Path 1.10 +4 -1 src/sys/miscfs/union/union.h 1.24 +18 -1 src/sys/miscfs/union/union_subr.c 1.49 +11 -8 src/sys/miscfs/union/union_vnops.c