diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-29 14:12:20 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-29 14:12:20 +0000 |
commit | a64044a80eb86e06b8f65c814a31d3a7cfb51d9e (patch) | |
tree | 9ff10d249e25537d8045318f815afc94fbc64692 /sys/kern/vfs_subr.c | |
parent | ee3b88adadcccdd4cddcc0c4d52e5ce2fd3a8833 (diff) |
MALLOC/FREE -> malloc/free
replace an hard coded value with M_WAITOK
ok krw@
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 752b7bbc652..fb082878136 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.157 2007/09/15 19:22:18 bluhm Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.158 2007/10/29 14:12:19 chl Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -536,8 +536,8 @@ loop: * Common case is actually in the if statement */ if (vp == NULL || !(vp->v_tag == VT_NON && vp->v_type == VBLK)) { - MALLOC(nvp->v_specinfo, struct specinfo *, - sizeof(struct specinfo), M_VNODE, M_WAITOK); + nvp->v_specinfo = malloc(sizeof(struct specinfo), M_VNODE, + M_WAITOK); nvp->v_rdev = nvp_rdev; nvp->v_hashchain = vpp; nvp->v_specnext = *vpp; @@ -1059,7 +1059,7 @@ vgonel(struct vnode *vp, struct proc *p) vx->v_flag &= ~VALIASED; vp->v_flag &= ~VALIASED; } - FREE(vp->v_specinfo, M_VNODE); + free(vp->v_specinfo, M_VNODE); vp->v_specinfo = NULL; } /* |