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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to