null_subr.c (109623) | null_subr.c (111119) |
---|---|
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 109623 2003-01-21 08:56:16Z alfred $ | 38 * $FreeBSD: head/sys/fs/nullfs/null_subr.c 111119 2003-02-19 05:47:46Z imp $ |
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> --- 160 unchanged lines hidden (view full) --- 207 */ 208 209 /* 210 * Do the MALLOC before the getnewvnode since doing so afterward 211 * might cause a bogus v_data pointer to get dereferenced 212 * elsewhere if MALLOC should block. 213 */ 214 MALLOC(xp, struct null_node *, sizeof(struct null_node), | 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> --- 160 unchanged lines hidden (view full) --- 207 */ 208 209 /* 210 * Do the MALLOC before the getnewvnode since doing so afterward 211 * might cause a bogus v_data pointer to get dereferenced 212 * elsewhere if MALLOC should block. 213 */ 214 MALLOC(xp, struct null_node *, sizeof(struct null_node), |
215 M_NULLFSNODE, 0); | 215 M_NULLFSNODE, M_WAITOK); |
216 217 error = getnewvnode("null", mp, null_vnodeop_p, &vp); 218 if (error) { 219 FREE(xp, M_NULLFSNODE); 220 return (error); 221 } 222 223 xp->null_vnode = vp; --- 116 unchanged lines hidden --- | 216 217 error = getnewvnode("null", mp, null_vnodeop_p, &vp); 218 if (error) { 219 FREE(xp, M_NULLFSNODE); 220 return (error); 221 } 222 223 xp->null_vnode = vp; --- 116 unchanged lines hidden --- |