diff options
author | alc <alc@FreeBSD.org> | 2007-12-02 01:28:35 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-12-02 01:28:35 +0000 |
commit | ed1f1ac93cc2ce787d4979b888980ffc8d4cbe18 (patch) | |
tree | 30ff0480f49e2ae71b88338181318d2062a9035b /sys/kern/vfs_bio.c | |
parent | fb73d97ef160c05407d58b1fc78b1ccdf3f498ac (diff) | |
download | FreeBSD-src-ed1f1ac93cc2ce787d4979b888980ffc8d4cbe18.zip FreeBSD-src-ed1f1ac93cc2ce787d4979b888980ffc8d4cbe18.tar.gz |
Eliminate vfs_page_set_valid()'s unused argument.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index ce59df6..444c2be 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -98,7 +98,7 @@ static void vm_hold_free_pages(struct buf *bp, vm_offset_t from, static void vm_hold_load_pages(struct buf *bp, vm_offset_t from, vm_offset_t to); static void vfs_page_set_valid(struct buf *bp, vm_ooffset_t off, - int pageno, vm_page_t m); + vm_page_t m); static void vfs_clean_pages(struct buf *bp); static void vfs_setdirty(struct buf *bp); static void vfs_setdirty_locked_object(struct buf *bp); @@ -3269,7 +3269,7 @@ bufdone_finish(struct buf *bp) * only need to do this here in the read case. */ if ((bp->b_iocmd == BIO_READ) && !bogusflag && resid > 0) { - vfs_page_set_valid(bp, foff, i, m); + vfs_page_set_valid(bp, foff, m); } /* @@ -3367,7 +3367,7 @@ vfs_unbusy_pages(struct buf *bp) * This routine is typically called after a read completes. */ static void -vfs_page_set_valid(struct buf *bp, vm_ooffset_t off, int pageno, vm_page_t m) +vfs_page_set_valid(struct buf *bp, vm_ooffset_t off, vm_page_t m) { vm_ooffset_t soff, eoff; @@ -3459,7 +3459,7 @@ retry: */ pmap_remove_all(m); if (clear_modify) - vfs_page_set_valid(bp, foff, i, m); + vfs_page_set_valid(bp, foff, m); else if (m->valid == VM_PAGE_BITS_ALL && (bp->b_flags & B_CACHE) == 0) { bp->b_pages[i] = bogus_page; @@ -3504,7 +3504,7 @@ vfs_clean_pages(struct buf *bp) if (eoff > bp->b_offset + bp->b_bufsize) eoff = bp->b_offset + bp->b_bufsize; - vfs_page_set_valid(bp, foff, i, m); + vfs_page_set_valid(bp, foff, m); /* vm_page_clear_dirty(m, foff & PAGE_MASK, eoff - foff); */ foff = noff; } |