From owner-svn-src-user@freebsd.org Sun Oct 11 17:18:15 2015 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 060609D2CB4 for ; Sun, 11 Oct 2015 17:18:15 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BDE7B812; Sun, 11 Oct 2015 17:18:14 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9BHIDav021948; Sun, 11 Oct 2015 17:18:13 GMT (envelope-from alc@FreeBSD.org) Received: (from alc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9BHIDCV021946; Sun, 11 Oct 2015 17:18:13 GMT (envelope-from alc@FreeBSD.org) Message-Id: <201510111718.t9BHIDCV021946@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: alc set sender to alc@FreeBSD.org using -f From: Alan Cox Date: Sun, 11 Oct 2015 17:18:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r289142 - user/alc/PQ_LAUNDRY/sys/vm X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2015 17:18:15 -0000 Author: alc Date: Sun Oct 11 17:18:13 2015 New Revision: 289142 URL: https://svnweb.freebsd.org/changeset/base/289142 Log: Retire vm_page_try_to_cache(). Modified: user/alc/PQ_LAUNDRY/sys/vm/vm_page.c user/alc/PQ_LAUNDRY/sys/vm/vm_page.h Modified: user/alc/PQ_LAUNDRY/sys/vm/vm_page.c ============================================================================== --- user/alc/PQ_LAUNDRY/sys/vm/vm_page.c Sun Oct 11 16:31:27 2015 (r289141) +++ user/alc/PQ_LAUNDRY/sys/vm/vm_page.c Sun Oct 11 17:18:13 2015 (r289142) @@ -2624,27 +2624,6 @@ vm_page_launder(vm_page_t m) } /* - * vm_page_try_to_cache: - * - * Returns 0 on failure, 1 on success - */ -int -vm_page_try_to_cache(vm_page_t m) -{ - - vm_page_lock_assert(m, MA_OWNED); - VM_OBJECT_ASSERT_WLOCKED(m->object); - if (m->dirty || m->hold_count || m->wire_count || - (m->oflags & VPO_UNMANAGED) != 0 || vm_page_busied(m)) - return (0); - pmap_remove_all(m); - if (m->dirty) - return (0); - vm_page_cache(m); - return (1); -} - -/* * vm_page_try_to_free() * * Attempt to free the page. If we cannot free it, we do nothing. Modified: user/alc/PQ_LAUNDRY/sys/vm/vm_page.h ============================================================================== --- user/alc/PQ_LAUNDRY/sys/vm/vm_page.h Sun Oct 11 16:31:27 2015 (r289141) +++ user/alc/PQ_LAUNDRY/sys/vm/vm_page.h Sun Oct 11 17:18:13 2015 (r289142) @@ -448,7 +448,6 @@ vm_page_t vm_page_grab (vm_object_t, vm_ void vm_page_cache(vm_page_t); void vm_page_cache_free(vm_object_t, vm_pindex_t, vm_pindex_t); void vm_page_cache_transfer(vm_object_t, vm_pindex_t, vm_object_t); -int vm_page_try_to_cache (vm_page_t); int vm_page_try_to_free (vm_page_t); void vm_page_deactivate (vm_page_t); void vm_page_deactivate_noreuse(vm_page_t);