mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
o Lock page queue accesses by vm_page_cache() in vm_contig_launder().
o Micro-optimize the control flow in vm_contig_launder().
This commit is contained in:
parent
6fd77192b2
commit
bda441aa04
1 changed files with 4 additions and 2 deletions
|
|
@ -111,9 +111,11 @@ vm_contig_launder(int queue)
|
|||
vm_pageout_flush(&m_tmp, 1, 0);
|
||||
return (TRUE);
|
||||
}
|
||||
}
|
||||
if ((m->dirty == 0) && (m->busy == 0) && (m->hold_count == 0))
|
||||
} else if (m->busy == 0 && m->hold_count == 0) {
|
||||
vm_page_lock_queues();
|
||||
vm_page_cache(m);
|
||||
vm_page_unlock_queues();
|
||||
}
|
||||
}
|
||||
return (FALSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue