diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-02-01 12:43:13 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-02-01 12:43:13 +0000 |
commit | 731959b1188b77040393910c3ce6ade06cdb7c5e (patch) | |
tree | 6e2ec195edd2663b7323bb03c2e09232e87703c0 /sys/sys/vnode.h | |
parent | 66aa222e60a126f5b2445ccad870afac3134693a (diff) | |
download | src-731959b1188b77040393910c3ce6ade06cdb7c5e.tar.gz src-731959b1188b77040393910c3ce6ade06cdb7c5e.zip |
Use off_t for file size passed to vnode_create_vobject().
The former type, size_t, was causing truncation to 32 bits on i386,
which immediately led to undersizing of VM objects backed by
files >4GB. In particular, sendfile(2) was broken for such files.
PR: kern/92243
MFC after: 5 days
Notes
Notes:
svn path=/head/; revision=155177
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r-- | sys/sys/vnode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 8469187dc344..426244e9ebf7 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -700,7 +700,7 @@ void vref(struct vnode *vp); int vrefcnt(struct vnode *vp); void v_addpollinfo(struct vnode *vp); -int vnode_create_vobject(struct vnode *vp, size_t size, struct thread *td); +int vnode_create_vobject(struct vnode *vp, off_t size, struct thread *td); void vnode_destroy_vobject(struct vnode *vp); extern struct vop_vector fifo_specops; |