Page MenuHomeFreeBSD

D23001.diff
No OneTemporary

D23001.diff

Index: head/sys/vm/vm_pageout.c
===================================================================
--- head/sys/vm/vm_pageout.c
+++ head/sys/vm/vm_pageout.c
@@ -834,6 +834,7 @@
if (new.act_count > ACT_MAX)
new.act_count = ACT_MAX;
+ new.flags &= ~PGA_QUEUE_OP_MASK;
new.flags |= PGA_REQUEUE;
new.queue = PQ_ACTIVE;
if (!vm_page_pqstate_commit(m, &old, new))
@@ -1313,8 +1314,9 @@
*/
ps_delta = 0;
if (old.queue != PQ_ACTIVE) {
- old.queue = PQ_ACTIVE;
- old.flags |= PGA_REQUEUE;
+ new.flags &= ~PGA_QUEUE_OP_MASK;
+ new.flags |= PGA_REQUEUE;
+ new.queue = PQ_ACTIVE;
}
} else {
/*
@@ -1350,6 +1352,7 @@
ps_delta = 1;
}
+ new.flags &= ~PGA_QUEUE_OP_MASK;
new.flags |= PGA_REQUEUE;
new.queue = nqueue;
}
@@ -1560,6 +1563,7 @@
if (new.act_count > ACT_MAX)
new.act_count = ACT_MAX;
+ new.flags &= ~PGA_QUEUE_OP_MASK;
new.flags |= PGA_REQUEUE;
new.queue = PQ_ACTIVE;
if (!vm_page_pqstate_commit(m, &old, new))

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 4:52 AM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15761390
Default Alt Text
D23001.diff (1 KB)

Event Timeline