summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-05-15 04:33:35 +0000
committeralc <alc@FreeBSD.org>2009-05-15 04:33:35 +0000
commit1af8842f56411a768c8a8b8fee2845313dba8223 (patch)
treea86532abfd963fc5ea7bcdfd1df5cd2b4cfd3465 /sys/fs
parent768767541d0c2e71285019bc8fd72c4d77ca9eb6 (diff)
downloadFreeBSD-src-1af8842f56411a768c8a8b8fee2845313dba8223.zip
FreeBSD-src-1af8842f56411a768c8a8b8fee2845313dba8223.tar.gz
Eliminate unnecessary clearing of the page's dirty mask from various
getpages functions. Eliminate a stale comment.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/smbfs/smbfs_io.c4
1 files changed, 3 insertions, 1 deletions
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
OpenPOWER on IntegriCloud