mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Eliminate an unnecessary check from vm_fault_prefault().
This commit is contained in:
parent
573cb89b8d
commit
36930fc947
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198472
@ -1011,8 +1011,8 @@ vm_fault_prefault(pmap_t pmap, vm_offset_t addra, vm_map_entry_t entry)
|
||||
while ((m = vm_page_lookup(lobject, pindex)) == NULL &&
|
||||
lobject->type == OBJT_DEFAULT &&
|
||||
(backing_object = lobject->backing_object) != NULL) {
|
||||
if (lobject->backing_object_offset & PAGE_MASK)
|
||||
break;
|
||||
KASSERT((lobject->backing_object_offset & PAGE_MASK) ==
|
||||
0, ("vm_fault_prefault: unaligned object offset"));
|
||||
pindex += lobject->backing_object_offset >> PAGE_SHIFT;
|
||||
VM_OBJECT_LOCK(backing_object);
|
||||
VM_OBJECT_UNLOCK(lobject);
|
||||
|
Loading…
Reference in New Issue
Block a user