Date: Tue, 10 Mar 1998 22:12:42 -0500 (EST) From: Luoqi Chen <luoqi@luoqi.watermarkgroup.com> To: current@FreeBSD.ORG Subject: typo in vop_stdlock() ? Message-ID: <199803110312.WAA03744@luoqi.watermarkgroup.com>
next in thread | raw e-mail | index | archive | help
Found this when I was browsing throught the code (vfs_default.c),
int
vop_stdlock(ap)
struct vop_lock_args /* {
struct vnode *a_vp;
int a_flags;
struct proc *a_p;
} */ *ap;
{
struct lock *l;
if ((l = (struct lock *)ap->a_vp->v_data) == NULL) {
if (ap->a_flags & LK_INTERLOCK)
simple_unlock(&ap->a_vp->v_interlock);
^^^^^^^^^^^^^
return 0;
}
return (lockmgr(l, ap->a_flags, &ap->a_vp->v_interlock, ap->a_p));
}
Shouldn't simple_unlock be simple_lock instead?
-lq
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803110312.WAA03744>
