Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2009 13:19:52 +0100
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Ed Schouten <ed@80386.nl>
Cc:        freebsd-emulation@FreeBSD.org
Subject:   Re: Making Linux stat() less evil
Message-ID:  <20090220121952.GA70382@freebsd.org>
In-Reply-To: <20090219212749.GI19161@hoeg.nl>
References:  <20090219205645.GF19161@hoeg.nl> <20090219212749.GI19161@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 19, 2009 at 10:27:49PM +0100, Ed Schouten wrote:
> Roman,
> 
> After some discussion with kib@ on IRC, I changed the patch a little: I
> added a new function called kern_statat_vnhook(). This function allows
> the Linuxolator to use a hook to modify struct stat, to reduce some
> redundant code:
> 
> 	http://80386.nl/pub/linux-stat.diff

looks ok to me.. I'd just use __predict_false() to the condition
in the kern_statat_vnhook() so we dont pessimise the typical case

I didnt test though (nor I plan to)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090220121952.GA70382>