diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-16 02:18:47 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-28 15:47:56 +0200 |
commit | 787a6034170b59d55afe8d0a12cb0904f20cb74d (patch) | |
tree | d20fcc9b98882c7bb62500185cbfb08006fec26a /vm/vm_page.h | |
parent | 069a8a3decf5981cd420014384ead470eac8561c (diff) |
codify locking contracts
Conflicts:
vm/vm_page.h
Diffstat (limited to 'vm/vm_page.h')
-rw-r--r-- | vm/vm_page.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/vm_page.h b/vm/vm_page.h index 90599a1..dd571e2 100644 --- a/vm/vm_page.h +++ b/vm/vm_page.h @@ -293,6 +293,7 @@ extern unsigned int vm_page_info( #define vm_page_lock_queues() lock_write(&vm_page_queue_lock) #define vm_page_unlock_queues() lock_write_done(&vm_page_queue_lock) +#define have_vm_page_queue_lock() have_write_lock(&vm_page_queue_lock) #define VM_PAGE_QUEUES_REMOVE(mem) \ MACRO_BEGIN \ |