Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115923449
D46820.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
D46820.diff
View Options
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -710,7 +710,7 @@
void vm_page_test_dirty(vm_page_t);
vm_page_bits_t vm_page_bits(int base, int size);
void vm_page_zero_invalid(vm_page_t m, boolean_t setvalid);
-void vm_page_free_pages_toq(struct spglist *free, bool update_wire_count);
+int vm_page_free_pages_toq(struct spglist *free, bool update_wire_count);
void vm_page_dirty_KBI(vm_page_t m);
void vm_page_lock_KBI(vm_page_t m, const char *file, int line);
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
@@ -4177,14 +4177,14 @@
* from any VM object. In other words, this is equivalent to
* calling vm_page_free_toq() for each page of a list of VM objects.
*/
-void
+int
vm_page_free_pages_toq(struct spglist *free, bool update_wire_count)
{
vm_page_t m;
int count;
if (SLIST_EMPTY(free))
- return;
+ return (0);
count = 0;
while ((m = SLIST_FIRST(free)) != NULL) {
@@ -4195,6 +4195,7 @@
if (update_wire_count)
vm_wire_sub(count);
+ return (count);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 11:32 AM (6 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17880312
Default Alt Text
D46820.diff (1 KB)
Attached To
Mode
D46820: vm_page_free_pages_toq(): return the count of freed pages
Attached
Detach File
Event Timeline
Log In to Comment