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_radix.h | |
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_radix.h')
-rw-r--r-- | sys/vm/_vm_radix.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/vm/_vm_radix.h b/sys/vm/_vm_radix.h index 2af0265..4c64e37 100644 --- a/sys/vm/_vm_radix.h +++ b/sys/vm/_vm_radix.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2013 EMC Corp. * Copyright (c) 2011 Jeffrey Roberson <jeff@freebsd.org> * Copyright (c) 2008 Mayur Shardul <mayur.shardul@gmail.com> * All rights reserved. @@ -36,4 +37,11 @@ struct vm_radix { uintptr_t rt_root; }; +static __inline boolean_t +vm_radix_is_empty(struct vm_radix *rtree) +{ + + return (rtree->rt_root == 0); +} + #endif /* !__VM_RADIX_H_ */ |