Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/ufs/ufs
On Mon, Sep 28, 2009 at 11:38:49PM +0300, Antti Kantee wrote:
> > Avoid nasal demons. Code of the form
> >
> > vput(vp);
> > error = VFS_VGET(vp->v_mount, ...);
> >
> > just isn't right. Because of vnode caching this *probably* never bit
> > anyone, except maybe under very heavy load, but still.
>
> Unbitten more likely because checkpath is only for rename and rename has
> approximately 57 billion extra references to the vnode when calling it.
> "but still".
Well, not there; that code is/was executed on each step ascending the
path up from the destination directory. That's fairly likely to hit
some otherwise idle places.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index