Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101981454
D47047.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
833 B
Referenced Files
None
Subscribers
None
D47047.diff
View Options
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -363,6 +363,7 @@
void vm_object_destroy (vm_object_t);
void vm_object_terminate (vm_object_t);
void vm_object_set_writeable_dirty (vm_object_t);
+void vm_object_set_writeable_dirty_count (vm_object_t, int);
void vm_object_set_writeable_dirty_(vm_object_t object);
bool vm_object_mightbedirty(vm_object_t object);
bool vm_object_mightbedirty_(vm_object_t object);
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
@@ -2337,6 +2337,13 @@
return (TRUE);
}
+void
+vm_object_set_writeable_dirty_count(vm_object_t object, int count)
+{
+ MPASS(count > 0);
+ atomic_add_int(&object->generation, count);
+}
+
void
vm_object_set_writeable_dirty_(vm_object_t object)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 3:27 AM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13935111
Default Alt Text
D47047.diff (833 B)
Attached To
Mode
D47047: vm_object: Add wrapper for bumping generation counter
Attached
Detach File
Event Timeline
Log In to Comment