diff options
Diffstat (limited to 'vm/vm_object.h')
-rw-r--r-- | vm/vm_object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/vm_object.h b/vm/vm_object.h index 3c9055f..01ce4ad 100644 --- a/vm/vm_object.h +++ b/vm/vm_object.h @@ -376,8 +376,9 @@ MACRO_END #define vm_object_sleep(event, object, interruptible) \ thread_sleep_lock((event_t)(event), &(object)->Lock, \ (interruptible)) -#define vm_object_lock_taken(object) lock_taken(&(object)->Lock) #endif /* VM_OBJECT_DEBUG */ +#define have_vm_object_lock(object) \ + (object == NULL || have_write_lock(&(object)->Lock)) /* * Page cache accounting. |