A miss from r284310. vm_pager_get_pages() updates the array, so there is

no need for vm_page_lookup().
This commit is contained in:
Gleb Smirnoff 2015-06-12 13:15:14 +00:00
parent 00f73819c2
commit 0fe299de4b

View file

@ -3175,9 +3175,6 @@ i915_gem_wire_page(vm_object_t object, vm_pindex_t pindex, bool *fresh)
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);