diff options
author | alc <alc@FreeBSD.org> | 2009-06-07 18:19:04 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-06-07 18:19:04 +0000 |
commit | f482e4a9e0f02a82e107e2bbee139c6a0b48be80 (patch) | |
tree | 38c3d8918d9b85d9890c5198b473108958b71e4d /sys | |
parent | e3bbdad1086e84d8c6d1b301d9054e28f82cd8d6 (diff) | |
download | FreeBSD-src-f482e4a9e0f02a82e107e2bbee139c6a0b48be80.zip FreeBSD-src-f482e4a9e0f02a82e107e2bbee139c6a0b48be80.tar.gz |
Eliminate an unused variable from allocbuf().
Eliminate the unnecessary setting of page valid bits from a non-VMIO buffer
in vm_hold_load_pages().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_bio.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 63ad407..65e9460 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -2946,7 +2946,6 @@ allocbuf(struct buf *bp, int size) * We are growing the buffer, possibly in a * byte-granular fashion. */ - struct vnode *vp; vm_object_t obj; vm_offset_t toff; vm_offset_t tinc; @@ -2958,7 +2957,6 @@ allocbuf(struct buf *bp, int size) * range covered by the buffer. */ - vp = bp->b_vp; obj = bp->b_bufobj->bo_object; VM_OBJECT_LOCK(obj); @@ -3762,7 +3760,6 @@ tryagain: VM_WAIT; goto tryagain; } - p->valid = VM_PAGE_BITS_ALL; pmap_qenter(pg, &p, 1); bp->b_pages[index] = p; } |