Date: Sun, 11 Oct 2015 17:18:13 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r289142 - user/alc/PQ_LAUNDRY/sys/vm Message-ID: <201510111718.t9BHIDCV021946@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510111718.t9BHIDCV021946>