summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-21 21:56:51 +0000
committerattilio <attilio@FreeBSD.org>2013-02-21 21:56:51 +0000
commit8702b26c682453a6988606aa821060803a997e25 (patch)
tree420582a5895949faa82faaa675805deee2bcc972 /sys/vm/vm_object.h
parent905e648d428b4f43651b120c5e7f4a9f46074308 (diff)
downloadFreeBSD-src-8702b26c682453a6988606aa821060803a997e25.zip
FreeBSD-src-8702b26c682453a6988606aa821060803a997e25.tar.gz
Complete the asserts by definining also assertions for
RA_RLOCKED and RA_LOCKED cases. Sponsored by: EMC / Isilon storage division Requested by: alc
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index a40d360..a9bbffb 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -204,6 +204,10 @@ extern struct vm_object kmem_object_store;
#define kernel_object (&kernel_object_store)
#define kmem_object (&kmem_object_store)
+#define VM_OBJECT_ASSERT_LOCKED(object) \
+ rw_assert(&(object)->lock, RA_LOCKED)
+#define VM_OBJECT_ASSERT_RLOCKED(object) \
+ rw_assert(&(object)->lock, RA_RLOCKED)
#define VM_OBJECT_ASSERT_WLOCKED(object) \
rw_assert(&(object)->lock, RA_WLOCKED)
#define VM_OBJECT_LOCK_INIT(object, name) \
OpenPOWER on IntegriCloud