diff options
author | alc <alc@FreeBSD.org> | 2013-03-10 17:30:57 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2013-03-10 17:30:57 +0000 |
commit | 2c9c7618862694a596a19b1c9890c0619bb01afb (patch) | |
tree | cb93df5bbc8255e2e440a475e6592db83c14bdb7 /sys/vm/vm_object.c | |
parent | 8e402504c86a0f6242d45649b2f345664f84215f (diff) | |
download | FreeBSD-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.c')
-rw-r--r-- | sys/vm/vm_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 255d919..3d9ec61 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -168,7 +168,7 @@ vm_object_zdtor(void *mem, int size, void *arg) object = (vm_object_t)mem; KASSERT(TAILQ_EMPTY(&object->memq), ("object %p has resident pages in its memq", object)); - KASSERT(object->rtree.rt_root == 0, + KASSERT(vm_radix_is_empty(&object->rtree), ("object %p has resident pages in its trie", object)); #if VM_NRESERVLEVEL > 0 KASSERT(LIST_EMPTY(&object->rvq), |