svn commit: r192917 - head/sys/fs/tmpfs
Alan Cox
alc at FreeBSD.org
Wed May 27 18:12:11 UTC 2009
Author: alc
Date: Wed May 27 18:12:10 2009
New Revision: 192917
URL: http://svn.freebsd.org/changeset/base/192917
Log:
Eliminate redundant setting of a page's valid bits and pointless clearing
of the same page's dirty bits.
Modified:
head/sys/fs/tmpfs/tmpfs_vnops.c
Modified: head/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vnops.c Wed May 27 18:11:12 2009 (r192916)
+++ head/sys/fs/tmpfs/tmpfs_vnops.c Wed May 27 18:12:10 2009 (r192917)
@@ -606,8 +606,8 @@ out:
VM_OBJECT_LOCK(vobj);
vm_page_lock_queues();
if (error == 0) {
- vm_page_set_validclean(tpg, offset, tlen);
- vm_page_zero_invalid(tpg, TRUE);
+ KASSERT(tpg->valid == VM_PAGE_BITS_ALL,
+ ("parts of tpg invalid"));
vm_page_dirty(tpg);
}
vm_page_unwire(tpg, TRUE);
More information about the svn-src-head
mailing list