Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137662730
D17028.id47889.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.id47889.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
Tue, Nov 25, 8:07 PM (2 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26079590
Default Alt Text
D17028.id47889.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