Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108578973
D35469.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
D35469.diff
View Options
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -4367,7 +4367,7 @@
if (force) {
object = reg->ushm_obj->shm_object;
VM_OBJECT_WLOCK(object);
- object->flags |= OBJ_UMTXDEAD;
+ vm_object_set_flag(object, OBJ_UMTXDEAD);
VM_OBJECT_WUNLOCK(object);
}
mtx_lock(&umtx_shm_lock);
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
@@ -317,7 +317,7 @@
if ((object->flags & OBJ_COLORED) == 0) {
object->pg_color = color;
- object->flags |= OBJ_COLORED;
+ vm_object_set_flag(object, OBJ_COLORED);
}
}
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
@@ -744,7 +744,7 @@
vm_object_sub_shadow(backing_object);
if ((object->flags & OBJ_SHADOWLIST) != 0) {
LIST_REMOVE(object, shadow_list);
- object->flags &= ~OBJ_SHADOWLIST;
+ vm_object_clear_flag(object, OBJ_SHADOWLIST);
}
object->backing_object = NULL;
}
@@ -778,7 +778,7 @@
VM_OBJECT_ASSERT_WLOCKED(backing_object);
LIST_INSERT_HEAD(&backing_object->shadow_head, object,
shadow_list);
- object->flags |= OBJ_SHADOWLIST;
+ vm_object_set_flag(object, OBJ_SHADOWLIST);
}
object->backing_object = backing_object;
}
@@ -1498,7 +1498,8 @@
vm_object_backing_insert(result, source);
result->domain = source->domain;
#if VM_NRESERVLEVEL > 0
- result->flags |= source->flags & OBJ_COLORED;
+ vm_object_set_flag(result,
+ (source->flags & OBJ_COLORED));
result->pg_color = (source->pg_color +
OFF_TO_IDX(*offset)) & ((1 << (VM_NFREEORDER -
1)) - 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 1:49 PM (4 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16198610
Default Alt Text
D35469.diff (1 KB)
Attached To
Mode
D35469: vm_object: Use the vm_object_(set|clear)_flag() helpers
Attached
Detach File
Event Timeline
Log In to Comment