vfs_subr.c (117879) | vfs_subr.c (118607) |
---|---|
1/* 2 * Copyright (c) 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. --- 29 unchanged lines hidden (view full) --- 38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 39 */ 40 41/* 42 * External virtual filesystem routines 43 */ 44 45#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 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. --- 29 unchanged lines hidden (view full) --- 38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 39 */ 40 41/* 42 * External virtual filesystem routines 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 117879 2003-07-22 10:36:36Z phk $"); | 46__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 118607 2003-08-07 15:04:27Z jhb $"); |
47 48#include "opt_ddb.h" 49#include "opt_mac.h" 50 51#include <sys/param.h> 52#include <sys/systm.h> 53#include <sys/bio.h> 54#include <sys/buf.h> --- 3580 unchanged lines hidden (view full) --- 3635} 3636 3637/* 3638 * Free data allocated by namei(); see namei(9) for details. 3639 */ 3640void 3641NDFREE(ndp, flags) 3642 struct nameidata *ndp; | 47 48#include "opt_ddb.h" 49#include "opt_mac.h" 50 51#include <sys/param.h> 52#include <sys/systm.h> 53#include <sys/bio.h> 54#include <sys/buf.h> --- 3580 unchanged lines hidden (view full) --- 3635} 3636 3637/* 3638 * Free data allocated by namei(); see namei(9) for details. 3639 */ 3640void 3641NDFREE(ndp, flags) 3642 struct nameidata *ndp; |
3643 const uint flags; | 3643 const u_int flags; |
3644{ 3645 if (!(flags & NDF_NO_FREE_PNBUF) && 3646 (ndp->ni_cnd.cn_flags & HASBUF)) { 3647 uma_zfree(namei_zone, ndp->ni_cnd.cn_pnbuf); 3648 ndp->ni_cnd.cn_flags &= ~HASBUF; 3649 } 3650 if (!(flags & NDF_NO_DVP_UNLOCK) && 3651 (ndp->ni_cnd.cn_flags & LOCKPARENT) && --- 182 unchanged lines hidden --- | 3644{ 3645 if (!(flags & NDF_NO_FREE_PNBUF) && 3646 (ndp->ni_cnd.cn_flags & HASBUF)) { 3647 uma_zfree(namei_zone, ndp->ni_cnd.cn_pnbuf); 3648 ndp->ni_cnd.cn_flags &= ~HASBUF; 3649 } 3650 if (!(flags & NDF_NO_DVP_UNLOCK) && 3651 (ndp->ni_cnd.cn_flags & LOCKPARENT) && --- 182 unchanged lines hidden --- |