Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143606796
D53008.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
757 B
Referenced Files
None
Subscribers
None
D53008.diff
View Options
diff --git a/sys/sys/user.h b/sys/sys/user.h
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -617,7 +617,8 @@
} kvo_type_spec; /* Type-specific union */
uint64_t kvo_me; /* Uniq handle for anon obj */
uint64_t kvo_laundry; /* Number of laundry pages. */
- uint64_t _kvo_qspare[5];
+ uint64_t kvo_wired; /* Number of wired pages. */
+ uint64_t _kvo_qspare[4];
uint32_t kvo_swapped; /* Number of swapped pages */
uint32_t kvo_flags;
uint32_t _kvo_ispare[6];
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -2547,6 +2547,9 @@
kvo->kvo_inactive++;
else if (vm_page_in_laundry(m))
kvo->kvo_laundry++;
+
+ if (vm_page_wired(m))
+ kvo->kvo_wired++;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 1:24 AM (8 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28198940
Default Alt Text
D53008.diff (757 B)
Attached To
Mode
D53008: vm_object: Export the number of wired pages in vm_object_list_handler()
Attached
Detach File
Event Timeline
Log In to Comment