summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-27 18:12:13 +0000
committerattilio <attilio@FreeBSD.org>2013-02-27 18:12:13 +0000
commit8d28f9479090da520ef392412da9129ec48f85ea (patch)
tree960a120b0bfa6e8ab680fe148604e67ac3880e7d /sys/vm/vm_object.h
parent5661e1fe461be2da03359fdaaf886b1a1155062b (diff)
downloadFreeBSD-src-8d28f9479090da520ef392412da9129ec48f85ea.zip
FreeBSD-src-8d28f9479090da520ef392412da9129ec48f85ea.tar.gz
Merge from vmobj-rwlock:
VM_OBJECT_LOCKED() macro is only used to implement a custom version of lock assertions right now (which likely spread out thanks to copy and paste). Remove it and implement actual assertions. Sponsored by: EMC / Isilon storage division Reviewed by: alc Tested by: pho
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index e085929..76caa75 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -206,7 +206,6 @@ extern struct vm_object kmem_object_store;
#define VM_OBJECT_LOCK(object) mtx_lock(&(object)->mtx)
#define VM_OBJECT_LOCK_ASSERT(object, type) \
mtx_assert(&(object)->mtx, (type))
-#define VM_OBJECT_LOCKED(object) mtx_owned(&(object)->mtx)
#define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \
msleep((wchan), &(object)->mtx, (pri), \
(wmesg), (timo))
OpenPOWER on IntegriCloud