Deleted Added
full compact
vfs_lookup.c (91419) vfs_lookup.c (92654)
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.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_lookup.c 8.4 (Berkeley) 2/16/94
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.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_lookup.c 8.4 (Berkeley) 2/16/94
39 * $FreeBSD: head/sys/kern/vfs_lookup.c 91419 2002-02-27 19:15:29Z jhb $
39 * $FreeBSD: head/sys/kern/vfs_lookup.c 92654 2002-03-19 09:11:49Z jeff $
40 */
41
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/kernel.h>
47#include <sys/lock.h>

--- 7 unchanged lines hidden (view full) ---

55#include <sys/ktrace.h>
56#endif
57
58#include <vm/vm_zone.h>
59
60/*
61 * Allocation zone for namei
62 */
40 */
41
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/kernel.h>
47#include <sys/lock.h>

--- 7 unchanged lines hidden (view full) ---

55#include <sys/ktrace.h>
56#endif
57
58#include <vm/vm_zone.h>
59
60/*
61 * Allocation zone for namei
62 */
63struct vm_zone *namei_zone;
63vm_zone_t namei_zone;
64
65static void
66nameiinit(void *dummy __unused)
67{
64
65static void
66nameiinit(void *dummy __unused)
67{
68 namei_zone = uma_zcreate("NAMEI", MAXPATHLEN, NULL, NULL, NULL, NULL,
69 UMA_ALIGN_PTR, 0);
68
70
69 namei_zone = zinit("NAMEI", MAXPATHLEN, 0, 0, 2);
70}
71SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL)
72
73/*
74 * Convert a pathname into a pointer to a locked inode.
75 *
76 * The FOLLOW flag is set when symbolic links are to be followed
77 * when they occur at the end of the name translation process.

--- 673 unchanged lines hidden ---
71}
72SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL)
73
74/*
75 * Convert a pathname into a pointer to a locked inode.
76 *
77 * The FOLLOW flag is set when symbolic links are to be followed
78 * when they occur at the end of the name translation process.

--- 673 unchanged lines hidden ---