Lines Matching defs:tvp

3094 		 * Even though hfs_vnop_rename calls vnode_recycle for us on tvp we call 
4061 struct vnode *tvp = ap->a_tvp;
4097 if (tvp && VTOC(tvp)) {
4098 orig_to_ctime = VTOC(tvp)->c_ctime;
4105 * Do special case checks here. If fvp == tvp then we need to check the
4108 if (fvp == tvp) {
4131 * is off, and the case folded names are the same. See the fvp == tvp case below for more
4155 if (tvp && VTOC(tvp)) {
4157 check_for_tracked_file(tvp, orig_to_ctime, NAMESPACE_HANDLER_DELETE_OP, NULL);
4162 /* When tvp exists, take the truncate lock for hfs_removefile(). */
4163 if (tvp && (vnode_isreg(tvp) || vnode_islnk(tvp))) {
4164 hfs_lock_truncate(VTOC(tvp), HFS_EXCLUSIVE_LOCK, HFS_LOCK_DEFAULT);
4169 error = hfs_lockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL,
4173 hfs_unlock_truncate(VTOC(tvp), HFS_LOCK_DEFAULT);
4180 * an iocount on tvp's resource fork vnode. Drop that before dealing
4191 * tvp might no longer exist. If the cause of the lock failure
4192 * was tvp, then we can try again with tvp/tcp set to NULL.
4196 if ((error == ENOENT) && (tvp != NULL) && (error_cnode == VTOC(tvp))) {
4198 tvp = NULL;
4212 tcp = tvp ? VTOC(tvp) : NULL;
4221 hfs_unlockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL);
4256 hfs_unlockfour(VTOC(fdvp), VTOC(fvp), VTOC(tdvp), tvp ? VTOC(tvp) : NULL);
4290 if ((tvp) && (tcp->c_rsrc_vp) && (tvp_rsrc == NULL)) {
4300 hfs_unlock_truncate (VTOC(tvp), HFS_LOCK_DEFAULT);
4344 hfs_unlock_truncate(VTOC(tvp), HFS_LOCK_DEFAULT);
4352 tvp = NULL;
4354 // retry the locking with tvp null'ed out
4398 * o tvp
4407 * (note tvp is not empty)
4412 * o tvp tvp o fdvp
4420 if (tvp && vnode_isdir(tvp) && (tcp->c_entries != 0) && fvp != tvp) {
4456 if (tvp && (tdcp->c_mode & S_ISTXT) &&
4472 if (tvp)
4555 * existing 'tvp' element to the hidden directory in hfs_vnop_rename.
4580 if (tvp) {
4584 if (fvp != tvp) {
4591 save_tombstone(hfsmp, tdvp, tvp, tcnp, 0);
4633 * When fvp matches tvp they could be case variants
4636 if (fvp == tvp) {
4639 * If they're not hardlinks, then fvp == tvp must mean we
4667 * b) Both paths 'fvp' and 'tvp' are in the same parent directory.
4687 if (vnode_isdir(tvp)) {
4696 error = hfs_removedir(tdvp, tvp, tcnp, HFSRM_SKIP_RESERVE, 1);
4699 error = hfs_removefile(tdvp, tvp, tcnp, 0, HFSRM_SKIP_RESERVE, 0, NULL, 1);
4730 * Aggressively mark tvp/tcp for termination to ensure that we recover all blocks
4733 vnode_recycle(tvp);
4769 } else if (ut->t_lastop_document_id && should_save_docid_tombstone(ut, fvp, fcnp) && should_save_docid_tombstone(ut, tvp, tcnp)) {
4778 * All done with tvp and fvp.
4921 hfs_unlock_truncate(VTOC(tvp), HFS_LOCK_DEFAULT);
4932 /* After tvp is removed the only acceptable error is EIO */
5778 struct vnode *tvp;
5819 tvp = NULL;
6111 NULL, &tvp, &newvnode_flags);
6115 cp = VTOC(tvp);
6157 *vpp = tvp;
6182 cache_enter (dvp, tvp, cnp);
6191 * cnode/vnode 'tvp'. Ordinarily, you must acquire the truncate lock
6196 * 'tvp' is not lookup-able and it was a newly created vnode so it
6205 int err = hfs_removefile (dvp, tvp, cnp, 0, 0, 1, NULL, 0);
6207 printf("hfs_makenode: removefile failed (%d) for CP entry %p\n", err, tvp);
6212 err = vnode_recycle (tvp);
6214 printf("hfs_makenode: vnode_recycle failed (%d) for CP entry %p\n", err, tvp);
6218 vnode_put (tvp);