summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-06 19:03:48 +0000
committerattilio <attilio@FreeBSD.org>2013-02-06 19:03:48 +0000
commit86cff934d5585e3f610cadf184d996545acdcaf9 (patch)
tree064ae05eb3a9c4f2aa4a84e07e158d151498a491
parent9066f231e3b888b377dd18621ab5c1444d20206b (diff)
downloadFreeBSD-src-86cff934d5585e3f610cadf184d996545acdcaf9.zip
FreeBSD-src-86cff934d5585e3f610cadf184d996545acdcaf9.tar.gz
Do not assume the lock to be held so that this can be used also in
safe cases as a short-cut.
-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 d1c35ee..782e5c1 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -237,8 +237,6 @@ static __inline boolean_t
vm_object_cache_is_empty(vm_object_t object)
{
- VM_OBJECT_LOCK_ASSERT(object, MA_OWNED);
-
return (__predict_true(object->cache.rt_root == 0));
}
OpenPOWER on IntegriCloud