Subject: Re: eliminating veriexec #ifdefs in vfs_vnops.c
To: None <elad@NetBSD.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 12/30/2006 22:48:47
> YAMAMOTO Takashi wrote:
> >> +	error = pathname_get(ndp->ni_dirp, ndp->ni_segflg, &pn);
> >> +	if (error)
> >> +		goto bad2;
> >> +	ndp->ni_dirp = pathname_path(pn);
> >> +	ndp->ni_segflg = UIO_SYSSPACE;
> > 
> > this ought to be wrapped by #ifdef, IMO.
> > 
> > YAMAMOTO Takashi
> 
> why?
> 
> -e.

because two allocations and strcpy up to 1k bytes are costly enough.

YAMAMOTO Takashi