diff options
author | pjd <pjd@FreeBSD.org> | 2007-05-25 22:16:17 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-05-25 22:16:17 +0000 |
commit | 0d899d01c1fd92303dcc6f2a0faffd0c7e864d2a (patch) | |
tree | da5d41804d8dcac41036d7b4bfdfd4061cb8a167 /sys/kern/vfs_cache.c | |
parent | 21be5aeb9a2185fa43b49af4dfcf98c99635b351 (diff) | |
download | FreeBSD-src-0d899d01c1fd92303dcc6f2a0faffd0c7e864d2a.zip FreeBSD-src-0d899d01c1fd92303dcc6f2a0faffd0c7e864d2a.tar.gz |
The cache_leaf_test() function seems to be unused, so remove it.
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index f639155..9b96b94 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -293,37 +293,6 @@ cache_zap(ncp) } /* - * cache_leaf_test() - * - * Test whether this (directory) vnode's namei cache entry contains - * subdirectories or not. Used to determine whether the directory is - * a leaf in the namei cache or not. Note: the directory may still - * contain files in the namei cache. - * - * Returns 0 if the directory is a leaf, -1 if it isn't. - */ -int -cache_leaf_test(struct vnode *vp) -{ - struct namecache *ncpc; - int leaf; - - leaf = 0; - CACHE_LOCK(); - for (ncpc = LIST_FIRST(&vp->v_cache_src); - ncpc != NULL; - ncpc = LIST_NEXT(ncpc, nc_src) - ) { - if (ncpc->nc_vp != NULL && ncpc->nc_vp->v_type == VDIR) { - leaf = -1; - break; - } - } - CACHE_UNLOCK(); - return (leaf); -} - -/* * Lookup an entry in the cache * * Lookup is called with dvp pointing to the directory to search, |