diff options
author | jhb <jhb@FreeBSD.org> | 2012-02-06 17:00:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-02-06 17:00:28 +0000 |
commit | 1a6892cbe765f81bb0881e5206ece5fca2be33f2 (patch) | |
tree | 2bc10a8159c667f59ed6faecbee298104af7dc82 /sys/kern/vfs_cache.c | |
parent | 10fb6673e8872813e1d696e3dd3c20ec7b5e1933 (diff) | |
download | FreeBSD-src-1a6892cbe765f81bb0881e5206ece5fca2be33f2.zip FreeBSD-src-1a6892cbe765f81bb0881e5206ece5fca2be33f2.tar.gz |
Rename cache_lookup_times() to cache_lookup() and retire the old API and
ABI stub for cache_lookup().
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 4562ebc..81ad44e 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. |