From owner-svn-src-head@FreeBSD.ORG Fri Jun 5 17:06:20 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B877C1065675; Fri, 5 Jun 2009 17:06:20 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A734B8FC1F; Fri, 5 Jun 2009 17:06:20 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n55H6K5A032165; Fri, 5 Jun 2009 17:06:20 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n55H6KsG032164; Fri, 5 Jun 2009 17:06:20 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <200906051706.n55H6KsG032164@svn.freebsd.org> From: Alan Cox Date: Fri, 5 Jun 2009 17:06:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193522 - head/sys/vm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 17:06:21 -0000 Author: alc Date: Fri Jun 5 17:06:20 2009 New Revision: 193522 URL: http://svn.freebsd.org/changeset/base/193522 Log: vm_thread_swapin() needn't validate any pages. The pages are already validated by vm_pager_get_pages(). Modified: head/sys/vm/vm_glue.c Modified: head/sys/vm/vm_glue.c ============================================================================== --- head/sys/vm/vm_glue.c Fri Jun 5 16:55:10 2009 (r193521) +++ head/sys/vm/vm_glue.c Fri Jun 5 17:06:20 2009 (r193522) @@ -455,7 +455,6 @@ vm_thread_swapin(struct thread *td) if (rv != VM_PAGER_OK) panic("vm_thread_swapin: cannot get kstack for proc: %d", td->td_proc->p_pid); m = vm_page_lookup(ksobj, i); - m->valid = VM_PAGE_BITS_ALL; } ma[i] = m; vm_page_lock_queues();