Subject: Re: CVS commit: src/sys/fs/ntfs
To: Bill Studenmund <wrstuden@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 04/10/2003 20:36:05
Bill Studenmund wrote:
> Only VOP_REMOVE and VOP_RDMIR need to worry about this, and it should be
> easy to fix.

Also VOP_RENAME, but that should work with the below change too.
 
I'll give it a try and see if it works.

Jaromir

> I think the easy way is to add a new vnode pointer, *vp_last = NULL;
> Then in the VDESC_VP0_WILLPUT case, we do:
> 
> 	case VDESC_VP0_WILLPUT:
> 		/* Check for dvp == vp cases */
> 		if (vp == vp_last)
> 			vrele(vp);
> 		else
> 			vput(vp);
> 		vp_last = vp;
> 		break;
> 
> Take care,
> 
> Bill
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-