summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2013-03-10 17:30:57 +0000
committeralc <alc@FreeBSD.org>2013-03-10 17:30:57 +0000
commit2c9c7618862694a596a19b1c9890c0619bb01afb (patch)
treecb93df5bbc8255e2e440a475e6592db83c14bdb7 /sys/vm/vm_object.h
parent8e402504c86a0f6242d45649b2f345664f84215f (diff)
downloadFreeBSD-src-2c9c7618862694a596a19b1c9890c0619bb01afb.zip
FreeBSD-src-2c9c7618862694a596a19b1c9890c0619bb01afb.tar.gz
Introduce vm_radix_is_empty(), and use it in place of
vm_object_cache_is_empty() where the caller is aware of the page cache's implementation as a radix trie. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 7598ea3..2f2c961 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -248,7 +248,7 @@ static __inline boolean_t
vm_object_cache_is_empty(vm_object_t object)
{
- return (object->cache.rt_root == 0);
+ return (vm_radix_is_empty(&object->cache));
}
vm_object_t vm_object_allocate (objtype_t, vm_pindex_t);
OpenPOWER on IntegriCloud