Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107041952
D48376.id148909.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48376.id148909.diff
View Options
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -460,7 +460,7 @@
vmd->vmd_page_count = 0;
vmd->vmd_free_count = 0;
vmd->vmd_segs = 0;
- vmd->vmd_oom = FALSE;
+ vmd->vmd_oom = false;
for (i = 0; i < PQ_COUNT; i++) {
pq = &vmd->vmd_pagequeues[i];
TAILQ_INIT(&pq->pq_pl);
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -1816,7 +1816,7 @@
vmd->vmd_oom_seq++;
if (vmd->vmd_oom_seq < vm_pageout_oom_seq) {
if (vmd->vmd_oom) {
- vmd->vmd_oom = FALSE;
+ vmd->vmd_oom = false;
atomic_subtract_int(&vm_pageout_oom_vote, 1);
}
return;
@@ -1831,7 +1831,7 @@
if (vmd->vmd_oom)
return;
- vmd->vmd_oom = TRUE;
+ vmd->vmd_oom = true;
old_vote = atomic_fetchadd_int(&vm_pageout_oom_vote, 1);
if (old_vote != vm_ndomains - 1)
return;
@@ -1849,7 +1849,7 @@
* memory condition is still there, due to vmd_oom being
* false.
*/
- vmd->vmd_oom = FALSE;
+ vmd->vmd_oom = false;
atomic_subtract_int(&vm_pageout_oom_vote, 1);
}
diff --git a/sys/vm/vm_pagequeue.h b/sys/vm/vm_pagequeue.h
--- a/sys/vm/vm_pagequeue.h
+++ b/sys/vm/vm_pagequeue.h
@@ -257,7 +257,7 @@
/* Paging control variables, used within single threaded page daemon. */
struct pidctrl vmd_pid; /* Pageout controller. */
- boolean_t vmd_oom;
+ bool vmd_oom;
u_int vmd_inactive_threads;
u_int vmd_inactive_shortage; /* Per-thread shortage. */
blockcount_t vmd_inactive_running; /* Number of inactive threads. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 8:50 AM (10 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15739287
Default Alt Text
D48376.id148909.diff (1 KB)
Attached To
Mode
D48376: vm_pageout: Make vmd_oom a bool
Attached
Detach File
Event Timeline
Log In to Comment