Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2009 18:12:10 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192917 - head/sys/fs/tmpfs
Message-ID:  <200905271812.n4RICAWx006940@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905271812.n4RICAWx006940>