summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-20 10:51:34 +0000
committerattilio <attilio@FreeBSD.org>2013-02-20 10:51:34 +0000
commit1f1e13ca0304c5d3cab0d4c118678ec546f935bc (patch)
tree5b34b3c7cd00302d32a836920301b507e1a8f085 /sys/vm/vm_object.h
parent6a2e2ce522a097de5dab15c95de81db5c42d8c36 (diff)
downloadFreeBSD-src-1f1e13ca0304c5d3cab0d4c118678ec546f935bc.zip
FreeBSD-src-1f1e13ca0304c5d3cab0d4c118678ec546f935bc.tar.gz
There is no need to use VM_OBJECT_LOCKED() as the assertion won't
make the check available in any case if INVARIANTS is switched off. Remove VM_OBJECT_LOCKED().
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 475ec5b..c1d434a 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -210,8 +210,6 @@ extern struct vm_object kmem_object_store;
rw_assert(&(object)->lock, (type))
#define VM_OBJECT_LOCK_INIT(object, name) \
rw_init_flags(&(object)->lock, (name), RW_DUPOK)
-#define VM_OBJECT_LOCKED(object) \
- rw_wowned(&(object)->lock)
#define VM_OBJECT_SLEEP(wchan, object, pri, wmesg, timo) \
rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo))
#define VM_OBJECT_TRYLOCK(object) \
OpenPOWER on IntegriCloud