aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2012-02-06 17:00:28 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2012-02-06 17:00:28 +0000
commitbf40d24a3f0fa400f36653086ba4d42d854f8c31 (patch)
tree2bc10a8159c667f59ed6faecbee298104af7dc82 /sys/kern/vfs_cache.c
parent000d6ce28584b1d319be7e4449bf506f16fe5d58 (diff)
downloadsrc-bf40d24a3f0fa400f36653086ba4d42d854f8c31.tar.gz
src-bf40d24a3f0fa400f36653086ba4d42d854f8c31.zip
Rename cache_lookup_times() to cache_lookup() and retire the old API and
ABI stub for cache_lookup().
Notes
Notes: svn path=/head/; revision=231088
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 4562ebc0888d..81ad44e0a3ab 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -456,7 +456,7 @@ cache_zap(ncp)
*/
int
-cache_lookup_times(dvp, vpp, cnp, tsp, ticksp)
+cache_lookup(dvp, vpp, cnp, tsp, ticksp)
struct vnode *dvp;
struct vnode **vpp;
struct componentname *cnp;
@@ -994,7 +994,7 @@ vfs_cache_lookup(ap)
if (error)
return (error);
- error = cache_lookup(dvp, vpp, cnp);
+ error = cache_lookup(dvp, vpp, cnp, NULL, NULL);
if (error == 0)
return (VOP_CACHEDLOOKUP(dvp, vpp, cnp));
if (error == -1)
@@ -1374,12 +1374,9 @@ vn_commname(struct vnode *vp, char *buf, u_int buflen)
/* ABI compat shims for old kernel modules. */
#undef cache_enter
-#undef cache_lookup
void cache_enter(struct vnode *dvp, struct vnode *vp,
struct componentname *cnp);
-int cache_lookup(struct vnode *dvp, struct vnode **vpp,
- struct componentname *cnp);
void
cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
@@ -1388,13 +1385,6 @@ cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
cache_enter_time(dvp, vp, cnp, NULL);
}
-int
-cache_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp)
-{
-
- return (cache_lookup_times(dvp, vpp, cnp, NULL, NULL));
-}
-
/*
* This function updates path string to vnode's full global path
* and checks the size of the new path string against the pathlen argument.