diff options
author | alc <alc@FreeBSD.org> | 2009-05-27 18:12:10 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-05-27 18:12:10 +0000 |
commit | 095c1f19b69905801b4f310ea68c2c805aa56998 (patch) | |
tree | f6e4c29476d671e3fcdf4657b825f08fa1989016 /sys/fs | |
parent | a8416dd103f9a8773f004d6001517f924663f9ff (diff) | |
download | FreeBSD-src-095c1f19b69905801b4f310ea68c2c805aa56998.zip FreeBSD-src-095c1f19b69905801b4f310ea68c2c805aa56998.tar.gz |
Eliminate redundant setting of a page's valid bits and pointless clearing
of the same page's dirty bits.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 64114fa..a00ba2f 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -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); |