SCCS-vsn: sys/kern/vfs_cache.c 7.10
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)vfs_cache.c 7.9 (Berkeley) %G%
+ * @(#)vfs_cache.c 7.10 (Berkeley) %G%
* is returned. If the lookup fails, a status of zero is returned.
*/
int
* is returned. If the lookup fails, a status of zero is returned.
*/
int
-cache_lookup(dvp, vpp, cnp) /* converted to CN. NEEDSWORK: do callers */
-/* old: cache_lookup(ndp) */
+cache_lookup(dvp, vpp, cnp)
struct vnode *dvp;
struct vnode **vpp;
struct componentname *cnp;
struct vnode *dvp;
struct vnode **vpp;
struct componentname *cnp;
if (!(cnp->cn_flags & MAKEENTRY)) {
nchstats.ncs_badhits++;
} else if (ncp->nc_vp == NULL) {
if (!(cnp->cn_flags & MAKEENTRY)) {
nchstats.ncs_badhits++;
} else if (ncp->nc_vp == NULL) {
- if ((cnp->cn_nameiop & OPMASK) != CREATE) {
+ if (cnp->cn_nameiop != CREATE) {
nchstats.ncs_neghits++;
/*
* Move this slot to end of LRU chain,
nchstats.ncs_neghits++;
/*
* Move this slot to end of LRU chain,
/*
* Add an entry to the cache
*/
/*
* Add an entry to the cache
*/
-cache_enter(dvp, vp, cnp) /* converted to CN. NEEDSWORK: do callers */
-/* old: cache_lookup(ndp) */
+cache_enter(dvp, vp, cnp)
struct vnode *dvp;
struct vnode *vp;
struct componentname *cnp;
struct vnode *dvp;
struct vnode *vp;
struct componentname *cnp;