diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c index 2944a6bfbdef..b0988f6bf0ed 100644 --- a/sys/fs/smbfs/smbfs_io.c +++ b/sys/fs/smbfs/smbfs_io.c @@ -456,8 +456,6 @@ smbfs_getpages(ap) VM_OBJECT_LOCK(object); if (m->valid != 0) { - /* handled by vm_fault now */ - /* vm_page_zero_invalid(m, TRUE); */ vm_page_lock_queues(); for (i = 0; i < npages; ++i) { if (i != reqpage) @@ -526,8 +524,6 @@ smbfs_getpages(ap) */ m->valid = 0; vm_page_set_validclean(m, 0, size - toff); - /* handled by vm_fault now */ - /* vm_page_zero_invalid(m, TRUE); */ } else { /* * Read operation was short. If no error occured diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index 97820f03e8a4..0d1f3fa8ec1a 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -138,10 +138,8 @@ nfs_getpages(struct vop_getpages_args *ap) vm_page_t m = pages[ap->a_reqpage]; VM_OBJECT_LOCK(object); - vm_page_lock_queues(); if (m->valid != 0) { - /* handled by vm_fault now */ - /* vm_page_zero_invalid(m, TRUE); */ + vm_page_lock_queues(); for (i = 0; i < npages; ++i) { if (i != ap->a_reqpage) vm_page_free(pages[i]); @@ -150,7 +148,6 @@ nfs_getpages(struct vop_getpages_args *ap) VM_OBJECT_UNLOCK(object); return(0); } - vm_page_unlock_queues(); VM_OBJECT_UNLOCK(object); } @@ -219,8 +216,6 @@ nfs_getpages(struct vop_getpages_args *ap) */ m->valid = 0; vm_page_set_validclean(m, 0, size - toff); - /* handled by vm_fault now */ - /* vm_page_zero_invalid(m, TRUE); */ } else { /* * Read operation was short. If no error occured