vfs_lookup.c (175294) | vfs_lookup.c (176519) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)vfs_lookup.c 8.4 (Berkeley) 2/16/94 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)vfs_lookup.c 8.4 (Berkeley) 2/16/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/vfs_lookup.c 175294 2008-01-13 14:44:15Z attilio $"); | 38__FBSDID("$FreeBSD: head/sys/kern/vfs_lookup.c 176519 2008-02-24 16:38:58Z attilio $"); |
39 40#include "opt_ktrace.h" 41#include "opt_mac.h" 42#include "opt_vfs.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/kernel.h> --- 32 unchanged lines hidden (view full) --- 79{ 80 int error; 81 82 namei_zone = uma_zcreate("NAMEI", MAXPATHLEN, NULL, NULL, NULL, NULL, 83 UMA_ALIGN_PTR, 0); 84 error = getnewvnode("crossmp", NULL, &dead_vnodeops, &vp_crossmp); 85 if (error != 0) 86 panic("nameiinit: getnewvnode"); | 39 40#include "opt_ktrace.h" 41#include "opt_mac.h" 42#include "opt_vfs.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/kernel.h> --- 32 unchanged lines hidden (view full) --- 79{ 80 int error; 81 82 namei_zone = uma_zcreate("NAMEI", MAXPATHLEN, NULL, NULL, NULL, NULL, 83 UMA_ALIGN_PTR, 0); 84 error = getnewvnode("crossmp", NULL, &dead_vnodeops, &vp_crossmp); 85 if (error != 0) 86 panic("nameiinit: getnewvnode"); |
87 vp_crossmp->v_vnlock->lk_flags &= ~LK_NOSHARE; | 87 VN_LOCK_ASHARE(vp_crossmp); |
88} 89SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL) 90 91#ifdef LOOKUP_SHARED 92static int lookup_shared = 1; 93#else 94static int lookup_shared = 0; 95#endif --- 1015 unchanged lines hidden --- | 88} 89SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL) 90 91#ifdef LOOKUP_SHARED 92static int lookup_shared = 1; 93#else 94static int lookup_shared = 0; 95#endif --- 1015 unchanged lines hidden --- |