Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178247476
D6803.1796329547.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D6803.1796329547.diff
View Options
Index: sys/sys/vmmeter.h
===================================================================
--- sys/sys/vmmeter.h
+++ sys/sys/vmmeter.h
@@ -183,7 +183,8 @@
int
vm_paging_needed(void)
{
- return (cnt.v_free_count + cnt.v_cache_count < vm_pageout_wakeup_thresh);
+ return (cnt.v_free_count + cnt.v_cache_count <
+ (u_int)vm_pageout_wakeup_thresh);
}
#endif
Index: sys/vm/vm_page.h
===================================================================
--- sys/vm/vm_page.h
+++ sys/vm/vm_page.h
@@ -215,7 +215,7 @@
struct mtx pq_mutex;
struct pglist pq_pl;
int pq_cnt;
- int * const pq_vcnt;
+ u_int * const pq_vcnt;
const char * const pq_name;
} __aligned(CACHE_LINE_SIZE);
Index: sys/vm/vm_page.c
===================================================================
--- sys/vm/vm_page.c
+++ sys/vm/vm_page.c
@@ -253,11 +253,11 @@
*__DECONST(char **, &vmd->vmd_pagequeues[PQ_INACTIVE].pq_name) =
"vm inactive pagequeue";
- *__DECONST(int **, &vmd->vmd_pagequeues[PQ_INACTIVE].pq_vcnt) =
+ *__DECONST(u_int **, &vmd->vmd_pagequeues[PQ_INACTIVE].pq_vcnt) =
&cnt.v_inactive_count;
*__DECONST(char **, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_name) =
"vm active pagequeue";
- *__DECONST(int **, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_vcnt) =
+ *__DECONST(u_int **, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_vcnt) =
&cnt.v_active_count;
vmd->vmd_page_count = 0;
vmd->vmd_free_count = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 3, 8:25 PM (10 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42190922
Default Alt Text
D6803.1796329547.diff (1 KB)
Attached To
Mode
D6803: MFC r300220,r300223
Attached
Detach File
Event Timeline