- Revert a part of revision 1.73: Make vm_object_set_flag() an inline
function. This function is so trivial that inlining reduces the size of the kernel.
This commit is contained in:
parent
709f2f3096
commit
3b9a4cb6a9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121821
@ -257,12 +257,6 @@ vm_object_init(void)
|
||||
uma_prealloc(obj_zone, VM_OBJECTS_INIT);
|
||||
}
|
||||
|
||||
void
|
||||
vm_object_set_flag(vm_object_t object, u_short bits)
|
||||
{
|
||||
object->flags |= bits;
|
||||
}
|
||||
|
||||
void
|
||||
vm_object_clear_flag(vm_object_t object, u_short bits)
|
||||
{
|
||||
|
@ -183,7 +183,16 @@ extern struct vm_object kmem_object_store;
|
||||
#define VM_OBJECT_TRYLOCK(object) mtx_trylock(&(object)->mtx)
|
||||
#define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx)
|
||||
|
||||
void vm_object_set_flag(vm_object_t object, u_short bits);
|
||||
/*
|
||||
* The object must be locked or thread private.
|
||||
*/
|
||||
static __inline void
|
||||
vm_object_set_flag(vm_object_t object, u_short bits)
|
||||
{
|
||||
|
||||
object->flags |= bits;
|
||||
}
|
||||
|
||||
void vm_object_clear_flag(vm_object_t object, u_short bits);
|
||||
void vm_object_pip_add(vm_object_t object, short i);
|
||||
void vm_object_pip_subtract(vm_object_t object, short i);
|
||||
|
Loading…
Reference in New Issue
Block a user