Lines Matching refs:vdp
116 static int ext2_lookup_ino(struct vnode *vdp, struct vnode **vpp,
292 ext2_lookup_ino(struct vnode *vdp, struct vnode **vpp, struct componentname *cnp,
320 int DIRBLKSIZ = VTOI(vdp)->i_e2fs->e2fs_bsize;
325 dp = VTOI(vdp);
326 bmask = VFSTOEXT2(vdp->v_mount)->um_mountp->mnt_stat.f_iosize - 1;
372 (error = ext2_blkatoff(vdp, (off_t)i_offset, NULL,
391 ext2_blkatoff(vdp, (off_t)i_offset, NULL,
415 (dirchk && ext2_dirbadentry(vdp, ep, entryoffsetinblock))) {
500 if ((error = VOP_ACCESS(vdp, VWRITE, cred, cnp->cn_thread)) != 0)
542 cache_enter(vdp, NULL, cnp);
575 ASSERT_VOP_ELOCKED(vdp, __FUNCTION__);
579 if ((error = VOP_ACCESS(vdp, VWRITE, cred, cnp->cn_thread)) != 0)
600 VREF(vdp);
601 *vpp = vdp;
604 if ((error = VFS_VGET(vdp->v_mount, ino, LK_EXCLUSIVE,
631 if ((error = VOP_ACCESS(vdp, VWRITE, cred, cnp->cn_thread)) != 0)
642 if ((error = VFS_VGET(vdp->v_mount, ino, LK_EXCLUSIVE,
671 pdp = vdp;
682 * Recheck that ".." entry in the vdp directory points
683 * to the inode we looked up before vdp lock was
697 VREF(vdp); /* we want ourself, ie "." */
703 if (ltype != VOP_ISLOCKED(vdp)) {
705 vn_lock(vdp, LK_UPGRADE | LK_RETRY);
707 vn_lock(vdp, LK_DOWNGRADE | LK_RETRY);
709 *vpp = vdp;
711 if ((error = VFS_VGET(vdp->v_mount, ino, cnp->cn_lkflags,
721 cache_enter(vdp, *vpp, cnp);
992 struct vnode *vdp = ITOV(dp);
995 if ((error = ext2_blkatoff(vdp, (off_t)dp->i_offset, (char **)&ep,