From 1af8842f56411a768c8a8b8fee2845313dba8223 Mon Sep 17 00:00:00 2001 From: alc Date: Fri, 15 May 2009 04:33:35 +0000 Subject: Eliminate unnecessary clearing of the page's dirty mask from various getpages functions. Eliminate a stale comment. --- sys/fs/smbfs/smbfs_io.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/fs') diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c index 7890f88..4ea192b 100644 --- a/sys/fs/smbfs/smbfs_io.c +++ b/sys/fs/smbfs/smbfs_io.c @@ -524,7 +524,9 @@ smbfs_getpages(ap) * Read operation filled a partial page. */ m->valid = 0; - vm_page_set_validclean(m, 0, size - toff); + vm_page_set_valid(m, 0, size - toff); + KASSERT((m->dirty & vm_page_bits(0, size - toff)) == 0, + ("smbfs_getpages: page %p is dirty", m)); } else { /* * Read operation was short. If no error occured -- cgit v1.1