Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145930485
D17028.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
611 B
Referenced Files
None
Subscribers
None
D17028.diff
View Options
Index: head/sys/vm/vm_page.c
===================================================================
--- head/sys/vm/vm_page.c
+++ head/sys/vm/vm_page.c
@@ -3406,13 +3406,13 @@
void
vm_page_activate(vm_page_t m)
{
- int queue;
vm_page_assert_locked(m);
- if ((queue = vm_page_queue(m)) == PQ_ACTIVE || m->wire_count > 0 ||
- (m->oflags & VPO_UNMANAGED) != 0) {
- if (queue == PQ_ACTIVE && m->act_count < ACT_INIT)
+ if (m->wire_count > 0 || (m->oflags & VPO_UNMANAGED) != 0)
+ return;
+ if (vm_page_queue(m) == PQ_ACTIVE) {
+ if (m->act_count < ACT_INIT)
m->act_count = ACT_INIT;
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 27, 6:53 AM (13 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29019617
Default Alt Text
D17028.diff (611 B)
Attached To
Mode
D17028: Split some checks in vm_page_activate() to make it easier to read.
Attached
Detach File
Event Timeline
Log In to Comment