1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Changed sys/fs/nfs_clbio.c in the same way Alan Cox changed

sys/nfsclient/nfs_bio.c for r192134, so that the sources stay
in sync.

Approved by:	kib (mentor)
This commit is contained in:
Rick Macklem 2009-05-16 22:31:38 +00:00
parent 1b855ebe6c
commit 72d1bbba52
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192231

View File

@ -313,9 +313,9 @@ ncl_getpages(struct vop_getpages_args *ap)
* Read operation filled a partial page.
*/
m->valid = 0;
vm_page_set_validclean(m, 0, size - toff);
/* handled by vm_fault now */
/* vm_page_zero_invalid(m, TRUE); */
vm_page_set_valid(m, 0, size - toff);
KASSERT((m->dirty & vm_page_bits(0, size - toff)) == 0,
("nfs_getpages: page %p is dirty", m));
} else {
/*
* Read operation was short. If no error occured