diff options
author | phk <phk@FreeBSD.org> | 2005-01-25 00:40:01 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-25 00:40:01 +0000 |
commit | 796d435574629a3a293e13d786e313d9d473a134 (patch) | |
tree | 036fb28e1de0abf406a1218cb941bcb38aa5d9fc /sys/kern/kern_exec.c | |
parent | d0bbbd08819960975b875f626d055d6f49ac295a (diff) | |
download | FreeBSD-src-796d435574629a3a293e13d786e313d9d473a134.zip FreeBSD-src-796d435574629a3a293e13d786e313d9d473a134.tar.gz |
Don't use VOP_GETVOBJECT, use vp->v_object directly.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index b19bba6..50fea85 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -367,7 +367,8 @@ interpret: if (error) goto exec_fail_dealloc; - if (VOP_GETVOBJECT(imgp->vp, &imgp->object) == 0) + imgp->object = imgp->vp->v_object; + if (imgp->object != NULL) vm_object_reference(imgp->object); /* @@ -775,7 +776,7 @@ exec_map_first_page(imgp) if (imgp->firstpage != NULL) exec_unmap_first_page(imgp); - VOP_GETVOBJECT(imgp->vp, &object); + object = imgp->vp->v_object; VM_OBJECT_LOCK(object); ma[0] = vm_page_grab(object, 0, VM_ALLOC_NORMAL | VM_ALLOC_RETRY); if ((ma[0]->valid & VM_PAGE_BITS_ALL) != VM_PAGE_BITS_ALL) { |