From 46a5c6f4e87aa53a911a991579e7fc24b2c35407 Mon Sep 17 00:00:00 2001 From: yamt Date: Sun, 1 Jan 2006 16:45:42 +0000 Subject: [PATCH] vn_lock: LK_CANRECURSE is used by layered filesystems. pointed by cube@. --- sys/kern/vfs_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 887d6e0dbc2a..3d924d2232af 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_vnops.c,v 1.103 2005/12/31 14:33:13 yamt Exp $ */ +/* $NetBSD: vfs_vnops.c,v 1.104 2006/01/01 16:45:42 yamt Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.103 2005/12/31 14:33:13 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.104 2006/01/01 16:45:42 yamt Exp $"); #include "opt_verified_exec.h" @@ -707,7 +707,7 @@ vn_lock(struct vnode *vp, int flags) #endif KASSERT((flags & ~(LK_INTERLOCK|LK_SHARED|LK_EXCLUSIVE|LK_DRAIN|LK_NOWAIT|LK_RETRY| - LK_SETRECURSE)) + LK_SETRECURSE|LK_CANRECURSE)) == 0); do {