Lines Matching defs:tvp

2718 		 * Even though hfs_vnop_rename calls vnode_recycle for us on tvp we call 
3600 struct vnode *tvp = ap->a_tvp;
3634 if (tvp && VTOC(tvp)) {
3635 orig_to_ctime = VTOC(tvp)->c_ctime;
3642 * Do special case checks here. If fvp == tvp then we need to check the
3645 if (fvp == tvp) {
3668 * is off, and the case folded names are the same. See the fvp == tvp case below for more
3685 if (tvp && VTOC(tvp)) {
3687 check_for_tracked_file(tvp, orig_to_ctime, NAMESPACE_HANDLER_DELETE_OP, NULL);
3692 /* When tvp exists, take the truncate lock for hfs_removefile(). */
3693 if (tvp && (vnode_isreg(tvp) || vnode_islnk(tvp))) {
3694 hfs_lock_truncate(VTOC(tvp), HFS_EXCLUSIVE_LOCK);
3698 error = hfs_lockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL,
3702 hfs_unlock_truncate(VTOC(tvp), 0);
3709 * an iocount on tvp's resource fork vnode. Drop that before dealing
3720 * tvp might no longer exist. If the cause of the lock failure
3721 * was tvp, then we can try again with tvp/tcp set to NULL.
3725 if ((error == ENOENT) && (tvp != NULL) && (error_cnode == VTOC(tvp))) {
3727 tvp = NULL;
3737 tcp = tvp ? VTOC(tvp) : NULL;
3746 if ((tvp) && (tcp->c_rsrc_vp) && (tvp_rsrc == NULL)) {
3756 hfs_unlock_truncate (VTOC(tvp), 0);
3798 hfs_unlock_truncate(VTOC(tvp), 0);
3806 tvp = NULL;
3808 // retry the locking with tvp null'ed out
3852 * o tvp
3861 * (note tvp is not empty)
3866 * o tvp tvp o fdvp
3874 if (tvp && vnode_isdir(tvp) && (tcp->c_entries != 0) && fvp != tvp) {
3910 if (tvp && (tdcp->c_mode & S_ISTXT) &&
3926 if (tvp)
4009 * existing 'tvp' element to the hidden directory in hfs_vnop_rename.
4034 if (tvp) {
4036 * When fvp matches tvp they could be case variants
4039 if (fvp == tvp) {
4042 * If they're not hardlinks, then fvp == tvp must mean we
4070 * b) Both paths 'fvp' and 'tvp' are in the same parent directory.
4090 if (vnode_isdir(tvp)) {
4099 error = hfs_removedir(tdvp, tvp, tcnp, HFSRM_SKIP_RESERVE, 1);
4102 error = hfs_removefile(tdvp, tvp, tcnp, 0, HFSRM_SKIP_RESERVE, 0, NULL, 1);
4133 * Aggressively mark tvp/tcp for termination to ensure that we recover all blocks
4136 vnode_recycle(tvp);
4140 * All done with tvp and fvp.
4274 hfs_unlock_truncate(VTOC(tvp), 0);
4285 /* After tvp is removed the only acceptable error is EIO */
5071 struct vnode *tvp;
5111 tvp = NULL;
5378 NULL, &tvp, &newvnode_flags);
5382 cp = VTOC(tvp);
5383 *vpp = tvp;