View | Details | Raw Unified | Return to bug 51583 | Differences between
and this patch

Collapse All | Expand All

(-)null_subr.c.new (+5 lines)
Lines 73-78 MALLOC_DEFINE(M_NULLFSNODE, "NULLFS node Link Here
73
73
74
static struct vnode * null_hashget(struct vnode *);
74
static struct vnode * null_hashget(struct vnode *);
75
static struct vnode * null_hashins(struct null_node *);
75
static struct vnode * null_hashins(struct null_node *);
76
extern void	addalias(struct vnode *vp, dev_t nvp_rdev);
76
77
77
/*
78
/*
78
 * Initialise cache headers
79
 * Initialise cache headers
Lines 224-229 null_nodeget(mp, lowervp, vpp) Link Here
224
	xp->null_lowervp = lowervp;
225
	xp->null_lowervp = lowervp;
225
226
226
	vp->v_type = lowervp->v_type;
227
	vp->v_type = lowervp->v_type;
228
	if (vp->v_type == VCHR || vp->v_type == VBLK)
229
		addalias(vp, lowervp->v_un.vu_spec.vu_cdev);
230
	else
231
		vp->v_un = lowervp->v_un;
227
	vp->v_data = xp;
232
	vp->v_data = xp;
228
233
229
	/*
234
	/*

Return to bug 51583