mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Eliminate unnecessary PG_BUSY tests. They originally served a purpose
that is now handled by vm object locking.
This commit is contained in:
parent
49caa8a9f8
commit
9fea8cad08
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163594
@ -995,7 +995,7 @@ vm_fault_prefault(pmap_t pmap, vm_offset_t addra, vm_map_entry_t entry)
|
||||
}
|
||||
if (((m->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL) &&
|
||||
(m->busy == 0) &&
|
||||
(m->flags & (PG_BUSY | PG_FICTITIOUS)) == 0) {
|
||||
(m->flags & PG_FICTITIOUS) == 0) {
|
||||
|
||||
vm_page_lock_queues();
|
||||
if (VM_PAGE_INQUEUE1(m, PQ_CACHE))
|
||||
|
@ -1494,7 +1494,7 @@ vm_map_pmap_enter(vm_map_t map, vm_offset_t addr, vm_prot_t prot,
|
||||
}
|
||||
if ((p->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL &&
|
||||
(p->busy == 0) &&
|
||||
(p->flags & (PG_BUSY | PG_FICTITIOUS)) == 0) {
|
||||
(p->flags & PG_FICTITIOUS) == 0) {
|
||||
if (p_start == NULL) {
|
||||
start = addr + ptoa(tmpidx);
|
||||
p_start = p;
|
||||
|
Loading…
Reference in New Issue
Block a user