• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/vfs/

Lines Matching refs:dvp

148 static vnode_t cache_lookup_locked(vnode_t dvp, struct componentname *cnp);
153 static void cache_enter_locked(vnode_t dvp, vnode_t vp, struct componentname *cnp);
166 #define NCHHASH(dvp, hash_val) \
167 (&nchashtbl[(dvp->v_id ^ (hash_val)) & nchashmask])
280 vnode_t dvp;
341 ret = VFS_VGET(vp->v_mount, (ino64_t)va.va_parentid, &dvp, ctx);
346 if (!fixhardlink && (vp->v_parent != dvp)) {
347 vnode_update_identity(vp, dvp, NULL, 0, 0, VNODE_UPDATE_PARENT);
350 vp = dvp;
360 if (vnode_ref(dvp) != 0) {
361 dvp = NULLVP;
366 if (dvp) {
367 vnode_rele_ext(dvp, 0, 1);
463 * a reference on dvp, then update vp with
475 vnode_update_identity(vnode_t vp, vnode_t dvp, const char *name, int name_len, int name_hashval, int flags)
485 if (dvp && vnode_ref(dvp) != 0) {
486 dvp = NULLVP;
490 if (isstream && dvp && (dvp != vp) && (dvp != vp->v_parent) && (dvp->v_type == VREG)) {
491 vnode_lock_spin(dvp);
492 ++dvp->v_kusecount;
494 vnode_unlock(dvp);
498 dvp = NULLVP;
514 if (dvp != vp && dvp != vp->v_parent) {
516 vp->v_parent = dvp;
517 dvp = NULLVP;
529 if (dvp != NULLVP) {
533 vnode_lock_spin(dvp);
534 if (dvp->v_kusecount > 0)
535 --dvp->v_kusecount;
536 vnode_unlock(dvp);
539 vnode_rele(dvp);
1117 * and it is ALSO not the dvp we want to return to caller of this function, it MUST be
1131 cache_lookup_locked(vnode_t dvp, struct componentname *cnp)
1140 ncpp = NCHHASH(dvp, cnp->cn_hash);
1142 if ((ncp->nc_dvp == dvp) && (ncp->nc_hashval == hashval)) {
1204 * Lookup is called with dvp pointing to the directory to search,
1213 cache_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp)
1226 ncpp = NCHHASH(dvp, cnp->cn_hash);
1229 if ((ncp->nc_dvp == dvp) && (ncp->nc_hashval == hashval)) {
1311 cache_enter_with_gen(struct vnode *dvp, struct vnode *vp, struct componentname *cnp, int gen)
1319 if (dvp->v_nc_generation == gen)
1320 cache_enter_locked(dvp, vp, cnp);
1330 cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
1337 cache_enter_locked(dvp, vp, cnp);
1344 cache_enter_locked(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
1394 ncp->nc_dvp = dvp;
1405 ncpp = NCHHASH(dvp, cnp->cn_hash);
1452 * are children of dvp
1454 LIST_INSERT_HEAD(&dvp->v_ncchildren, ncp, nc_child);