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 07:48:47
> let's just move the namei() to the top and have the veriexec stuff
> after it.
> 
> something like:
> 
> 	if (fmode & O_CREAT) {
> 		ndp->ni_cnd.cn_nameiop = CREATE;
> 		ndp->ni_cnd.cn_flags = LOCKPARENT | LOCKLEAF;
> 	} else {
> 		ndp->ni_cnd.cn_nameiop = LOOKUP;
> 		ndp->ni_cnd.cn_flags = LOCKLEAF;
> 	}
> 	error = namei(ndp);
> 	/* stuff */
> 
> right after the 'restart:' label.
> 
> -e.

namei() calls in vn_open() are almost immediately after "restart:",
aren't they?

YAMAMOTO Takashi