Date: Fri, 12 Jun 2015 13:15:15 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284316 - head/sys/dev/drm2/i915 Message-ID: <201506121315.t5CDFFjD088868@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Fri Jun 12 13:15:14 2015 New Revision: 284316 URL: https://svnweb.freebsd.org/changeset/base/284316 Log: A miss from r284310. vm_pager_get_pages() updates the array, so there is no need for vm_page_lookup(). Modified: head/sys/dev/drm2/i915/i915_gem.c Modified: head/sys/dev/drm2/i915/i915_gem.c ============================================================================== --- head/sys/dev/drm2/i915/i915_gem.c Fri Jun 12 12:27:10 2015 (r284315) +++ head/sys/dev/drm2/i915/i915_gem.c Fri Jun 12 13:15:14 2015 (r284316) @@ -3175,9 +3175,6 @@ i915_gem_wire_page(vm_object_t object, v if (m->valid != VM_PAGE_BITS_ALL) { if (vm_pager_has_page(object, pindex, NULL, NULL)) { rv = vm_pager_get_pages(object, &m, 1, 0); - m = vm_page_lookup(object, pindex); - if (m == NULL) - return (NULL); if (rv != VM_PAGER_OK) { vm_page_lock(m); vm_page_free(m);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506121315.t5CDFFjD088868>