summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
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