MFC r261867:

Use the right index to free swapspace after vm_page_rename().
This commit is contained in:
attilio 2014-02-21 09:43:34 +00:00
parent 9f9257101a
commit cf0fa484f9

View File

@ -1628,9 +1628,11 @@ vm_object_backing_scan(vm_object_t object, int op)
p = TAILQ_FIRST(&backing_object->memq);
continue;
}
/* Use the old pindex to free the right page. */
if (backing_object->type == OBJT_SWAP)
swap_pager_freespace(backing_object, p->pindex,
1);
swap_pager_freespace(backing_object,
new_pindex + backing_offset_index, 1);
#if VM_NRESERVLEVEL > 0
/*