null_subr.c (103936) | null_subr.c (105077) |
---|---|
1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)null_subr.c 8.7 (Berkeley) 5/14/95 37 * | 1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)null_subr.c 8.7 (Berkeley) 5/14/95 37 * |
38 * $FreeBSD: head/sys/fs/nullfs/null_subr.c 103936 2002-09-25 02:32:42Z jeff $ | 38 * $FreeBSD: head/sys/fs/nullfs/null_subr.c 105077 2002-10-14 03:20:36Z mckusick $ |
39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/kernel.h> 44#include <sys/lock.h> 45#include <sys/mutex.h> 46#include <sys/malloc.h> --- 174 unchanged lines hidden (view full) --- 221 } 222 223 xp->null_vnode = vp; 224 xp->null_lowervp = lowervp; 225 226 vp->v_type = lowervp->v_type; 227 vp->v_data = xp; 228 | 39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/kernel.h> 44#include <sys/lock.h> 45#include <sys/mutex.h> 46#include <sys/malloc.h> --- 174 unchanged lines hidden (view full) --- 221 } 222 223 xp->null_vnode = vp; 224 xp->null_lowervp = lowervp; 225 226 vp->v_type = lowervp->v_type; 227 vp->v_data = xp; 228 |
229 /* Though v_lock is inited by getnewvnode(), we want our own wmesg */ 230 lockinit(&vp->v_lock, PVFS, "nunode", VLKTIMEOUT, LK_NOPAUSE); 231 | |
232 /* 233 * From NetBSD: 234 * Now lock the new node. We rely on the fact that we were passed 235 * a locked vnode. If the lower node is exporting a struct lock 236 * (v_vnlock != NULL) then we just set the upper v_vnlock to the 237 * lower one, and both are now locked. If the lower node is exporting 238 * NULL, then we copy that up and manually lock the new vnode. 239 */ --- 103 unchanged lines hidden --- | 229 /* 230 * From NetBSD: 231 * Now lock the new node. We rely on the fact that we were passed 232 * a locked vnode. If the lower node is exporting a struct lock 233 * (v_vnlock != NULL) then we just set the upper v_vnlock to the 234 * lower one, and both are now locked. If the lower node is exporting 235 * NULL, then we copy that up and manually lock the new vnode. 236 */ --- 103 unchanged lines hidden --- |